react-native-fast-image 8.6.24 → 8.6.25

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.
@@ -52,6 +52,11 @@ class FastImageViewManager extends SimpleViewManager<FastImageViewWithUrl> imple
52
52
  protected FastImageViewWithUrl createViewInstance(@NonNull ThemedReactContext reactContext) {
53
53
  if (isValidContextForGlide(reactContext)) {
54
54
  requestManager = Glide.with(reactContext);
55
+ } else if (getActivityFromContext(reactContext) == null) {
56
+ // Not in an Activity (e.g. a root view created with the application
57
+ // context): load with the application context, instead of leaving
58
+ // requestManager null and never loading (#520).
59
+ requestManager = Glide.with(reactContext.getApplicationContext());
55
60
  }
56
61
 
57
62
  return new FastImageViewWithUrl(reactContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-fast-image",
3
- "version": "8.6.24",
3
+ "version": "8.6.25",
4
4
  "description": "🚩 FastImage, performant React Native image component.",
5
5
  "keywords": [
6
6
  "cache",