Releases: mthahzan/react-native-image-fallback
Release 2.0.2
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.
Release 2.0.0
2.0.0 (2024-12-17)
This is a major upgrade to the architecture of the library. This includes;
- Migrate the project to use Typescript
- Migrate the project to use modern tooling (builder bob, release it, etc.)
For consumers of the library though, there's only one visible change which happens to be a breaking change.
BREAKING CHANGE
source
prop no longer acceptsstring
types. Instead it expects it to be image source objects.
v1.0.0
Changelog
- Moved away from deprecated lifecycle hook
componentWillReceiveProps
- Fixed annoying redbox error caused by Default Prop decleration
Commits
- Added package registry 4626202
- Merge pull request #6 from mikehardy/updates c749198
- lint: de-lint ImageLoader and eslint file 2bd4b26
- fix: work around dev redbox from unnecessary init 8c0103e
- fix: forward-port to new react lifecycle API, Fixes #3 a999492
- release: add "shipit" run script for npmjs publish 5982429
- lint: add "analyze" run target for lint 918ff1b
- chore: update all dependencies to current stable d9aae20
- Merge pull request #4 from mthahzan/dependabot/npm_and_yarn/acorn-6.4.1 9efe8ba
- Bump acorn from 6.1.1 to 6.4.1 fbea6db
- Create .sonarcloud.properties f6e0e5d
- Fixed vulnerable dependency 9bf118c
v0.1.0 - Custom component support
Added support for custom components.
0.0.4
0.0.3
0.0.2
0.0.1 (Initial pre-release)
This is the initial pre-release
TODO
- Write tests
- Accept React Native components instead of just image sources