Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <svcscm@fb.com>
- Loading branch information
fcd7de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to do something different to get this working? I have the following and it doesn't animate on Android:
I'm using RN
0.13.0-rc
and can confirm thatReactImageView.java
hassetAutoPlayAnimations
set totrue
.fcd7de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidgilbertson May be something to do with the file extension (
.jpg
)?fcd7de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I also thought it might be because it's not a cute animal, so tried a .gif dog and a .gifv cat, no joy. They just show as stills.
fcd7de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any updates on that? It is also not working for me. with the code above or similar code here in my stackoverflow question:
http://stackoverflow.com/questions/38169519/how-to-display-gif-in-react-native-android-app
fcd7de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to opt into gif support to your Gradle file, ex: #8455