react-native-fast-image 8.13.1 → 8.13.2

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.
@@ -18,7 +18,6 @@ import com.bumptech.glide.RequestManager;
18
18
  import com.bumptech.glide.load.model.GlideUrl;
19
19
  import com.bumptech.glide.load.resource.bitmap.DownsampleStrategy;
20
20
  import com.bumptech.glide.load.resource.gif.GifDrawable;
21
- import com.bumptech.glide.request.Request;
22
21
  import com.bumptech.glide.request.RequestOptions;
23
22
  import com.bumptech.glide.request.target.DrawableImageViewTarget;
24
23
  import com.bumptech.glide.request.target.SizeReadyCallback;
@@ -472,7 +471,9 @@ class FastImageViewWithUrl extends AppCompatImageView {
472
471
  }
473
472
 
474
473
  public void clearView(@Nullable RequestManager requestManager) {
475
- if (requestManager != null && getTag() != null && getTag() instanceof Request) {
474
+ // Glide keeps the view's request under its own tag id, not getTag().
475
+ // Without a request this does nothing.
476
+ if (requestManager != null) {
476
477
  requestManager.clear(this);
477
478
  }
478
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-fast-image",
3
- "version": "8.13.1",
3
+ "version": "8.13.2",
4
4
  "description": "🚩 FastImage, performant React Native image component.",
5
5
  "keywords": [
6
6
  "cache",