From fcd7de5301655b39832d49908e5ca72ddaf91f7e Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Thu, 24 Sep 2015 14:33:03 -0700 Subject: [PATCH] Autoplay GIFs on Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This adds support for animated GIFs on Android! Looking forward to some meme apps :) Also, Fresco is awesome. Closes #2997. @​public Reviewed By: @mkonicek Differential Revision: D2477540 committer: Service User --- .../main/java/com/facebook/react/views/image/ReactImageView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java index c8ba6c061..6253ea853 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java @@ -196,6 +196,7 @@ public class ReactImageView extends GenericDraweeView { DraweeController draweeController = mDraweeControllerBuilder .reset() + .setAutoPlayAnimations(true) .setCallerContext(mCallerContext) .setOldController(getController()) .setImageRequest(imageRequest)