Skip to content

Releases: mthahzan/react-native-image-fallback

Release 2.0.2

19 Dec 02:12
Compare
Choose a tag to compare

2.0.2 (2024-12-19)

  • docs: fix incorrect import statement on README (6ec6644)

Release 2.0.1

19 Dec 02:08
Compare
Choose a tag to compare

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

17 Dec 16:40
Compare
Choose a tag to compare

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 accepts string types. Instead it expects it to be image source objects.

v1.0.0

17 Jun 00:28
Compare
Choose a tag to compare

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

0.1.1...v1.0.0

v0.1.0 - Custom component support

24 May 04:53
Compare
Choose a tag to compare

Added support for custom components.

0.0.4

04 Jun 23:48
Compare
Choose a tag to compare
  • Fixed issue when there's duplicate entries of failing images

0.0.3

04 Jun 23:23
Compare
Choose a tag to compare
  • Fixed prop type issue on fallback

0.0.2

04 Jun 23:20
Compare
Choose a tag to compare
0.0.2 Pre-release
Pre-release
  • Fixed callback errors within the component
  • Fixed not capturing the concat value so sources array always coming empty issue

0.0.1 (Initial pre-release)

04 Jun 15:43
Compare
Choose a tag to compare
Pre-release

This is the initial pre-release

TODO

  • Write tests
  • Accept React Native components instead of just image sources