Skip to content

Commit

Permalink
Patch v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xerdnu committed Aug 18, 2024
1 parent 914aafc commit 65b53ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.0.3] (2024-08-18)

#### Bug Fixes

- Fixed a bug that caused an infinite loading loop when an image failed to load.

## [1.0.2] (2024-08-16)

#### Bug Fixes
Expand Down Expand Up @@ -166,6 +172,8 @@

- Initial release.

[1.0.3]: https://github.com/xerdnu/react-native-blasted-image/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/xerdnu/react-native-blasted-image/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/xerdnu/react-native-blasted-image/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.13...v1.0.0
[0.0.13]: https://github.com/xerdnu/react-native-blasted-image/compare/v0.0.12...v0.0.13
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const BlastedImage = ({
}

useEffect(() => {
if (typeof source === 'number') {
if (typeof source === 'number' || error) {
return;
}

Expand All @@ -88,7 +88,7 @@ const BlastedImage = ({
};

fetchImage();
}, [source]);
}, [source, error]);

// Flatten styles if provided as an array, otherwise use style as-is
const flattenedStyle = Array.isArray(style) ? Object.assign({}, ...style) : style;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-blasted-image",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple yet powerful image component for React Native, powered by Glide and SDWebImage",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 65b53ef

Please sign in to comment.