react-native-fast-image 8.6.36 → 8.6.37

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.
@@ -5,6 +5,7 @@ import android.graphics.drawable.Drawable;
5
5
  import com.bumptech.glide.load.DataSource;
6
6
  import com.bumptech.glide.load.engine.GlideException;
7
7
  import com.bumptech.glide.load.model.GlideUrl;
8
+ import com.bumptech.glide.load.resource.gif.GifDrawable;
8
9
  import com.bumptech.glide.request.Request;
9
10
  import com.bumptech.glide.request.RequestListener;
10
11
  import com.bumptech.glide.request.target.ImageViewTarget;
@@ -42,6 +43,11 @@ public class FastImageRequestListener implements RequestListener<Drawable> {
42
43
  return false;
43
44
  }
44
45
  final FastImageViewWithUrl view = (FastImageViewWithUrl) ((ImageViewTarget) target).getView();
46
+ if (resource instanceof GifDrawable) {
47
+ // Play the GIF as many times as the file says, as iOS does. Glide
48
+ // loops every GIF forever by default (#651).
49
+ ((GifDrawable) resource).setLoopCount(GifDrawable.LOOP_INTRINSIC);
50
+ }
45
51
  boolean local = !(model instanceof GlideUrl);
46
52
  int[] size = FastImageSourceSize.get(resource, model, local,
47
53
  dataSource == DataSource.RESOURCE_DISK_CACHE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-fast-image",
3
- "version": "8.6.36",
3
+ "version": "8.6.37",
4
4
  "description": "🚩 FastImage, performant React Native image component.",
5
5
  "keywords": [
6
6
  "cache",