Repository navigation
Release 2.0.1
2.0.1 (2024-12-19)
A minor refactor of the fallback logic has been made to improve the performance by eliminating a call to create an array on every render. This has been replaced with a logical operation during the onError event.
Additionally, this refactors the exported component to be more flexible in their usage. This deprecates the named import of the component and introduces a default import in place of that.
// This is deprecated
import {ImageLoader} from 'react-native-image-fallback';
// This is the preferred way
import Image from 'react-native-image-fallback';The deprecated named export will be removed on the next major version.
Potential gotcha - Some of the exported typings have also changed, but I do not consider them to be "breaking changes" per se.