Major Changes
-
#239
0490d52Thanks @wKovacs64! - Update major dev dependencies (react-native 0.78 and React 19) and refactor some internals.BREAKING CHANGES
Component Import
-
The
ResponsiveImageViewcomponent is now a named export instead of the default export. Migrate easily:-import ResponsiveImageView from 'react-native-responsive-image-view'; +import { ResponsiveImageView } from 'react-native-responsive-image-view';
TypeScript
ResponsiveImageViewPropsis now a type rather than an interface (should only impact you if you were extending it)
Features and Fixes
- You shouldn't have to memoize the
onLoadandonErrorcallbacks anymore if you were doing so previously ResponsiveImageViewreturn type changed fromReact.ReactElement<ResponsiveImageViewProps> | nulltoReact.JSX.Element | nullwhich is more accurate- New
UseResponsiveImageViewOptionstype for hook options
-