react-native-fast-image 8.6.35 → 8.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,6 +168,18 @@
168
168
  }
169
169
  // Use SDWebImage API to support external format like WebP images
170
170
  UIImage* image = [UIImage sd_imageWithData: [NSData dataWithContentsOfURL: _source.url]];
171
+ if (!image) {
172
+ // Not decodable: fail like a remote image, showing defaultSource.
173
+ [self setImage: _defaultSource];
174
+ self.hasErrored = YES;
175
+ if (self.onFastImageError) {
176
+ self.onFastImageError(@{});
177
+ }
178
+ if (self.onFastImageLoadEnd) {
179
+ self.onFastImageLoadEnd(@{});
180
+ }
181
+ return;
182
+ }
171
183
  [self setImage: image];
172
184
  if (self.onFastImageProgress) {
173
185
  self.onFastImageProgress(@{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-fast-image",
3
- "version": "8.6.35",
3
+ "version": "8.6.36",
4
4
  "description": "🚩 FastImage, performant React Native image component.",
5
5
  "keywords": [
6
6
  "cache",