react-native-fast-image 10.1.0 → 10.1.1
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.
|
@@ -1174,6 +1174,13 @@ NSString *FFFErrorMessage(NSError *error)
|
|
|
1174
1174
|
if (weakSelf.loadCount != load) {
|
|
1175
1175
|
return;
|
|
1176
1176
|
}
|
|
1177
|
+
// cacheOnly: SDWebImage completes the load of an image that
|
|
1178
|
+
// isn't cached with neither an image nor an error.
|
|
1179
|
+
if (!error && !image) {
|
|
1180
|
+
error = [NSError errorWithDomain: @"FastImage"
|
|
1181
|
+
code: 0
|
|
1182
|
+
userInfo: @{NSLocalizedDescriptionKey: @"Not in the cache"}];
|
|
1183
|
+
}
|
|
1177
1184
|
// The download was running when the app went to the
|
|
1178
1185
|
// background, and failed: iOS suspends it there, and its
|
|
1179
1186
|
// timeout keeps counting, so it times out as the app comes
|