Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] React-Native 0.27.0 & 0.28.0 animated gifs not displaying. #8359

Closed
basudz365 opened this issue Jun 23, 2016 · 2 comments
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@basudz365
Copy link

Hi everyone,
Pretty new to RN and am working on a project that displays an animated gif on a few screens throughout the app. They have been working fine until I upgraded React-Native from 0.26.3 to 0.28.0. I also tried 0.27.0 and 0.27.2 and the issue was still present.

The animated gif image does not display. I can replace it with any other type of image and it shows just fine but if it's an animated gif (local or uri sourced) it doesn't show.

My base React package is at 15.1.0, and I'm using Android 4.4. I've tested on an emulator and a real device.

<View style={styles.inputContainer}>
       <Image style={{width: 240, height: 500, alignSelf: 'center', marginVertical: 40,}}
            source={require('../img/barcode.gif')}/>
</View>

Let me know if more information is needed.

@charpeni
Copy link
Contributor

You're right, i'm working on something right now.

You can refer to this issue #7760, as a workaround you can add this to your gradle file :

0.27 & 0.28
  // For animated GIF support
  compile 'com.facebook.fresco:animated-gif:0.10.0'

  // For WebP support, including animated WebP
  compile 'com.facebook.fresco:animated-webp:0.10.0'
  compile 'com.facebook.fresco:webpsupport:0.10.0'
0.29-rc.0
  // For animated GIF support
  compile 'com.facebook.fresco:animated-gif:0.11.0'

  // For WebP support, including animated WebP
  compile 'com.facebook.fresco:animated-webp:0.11.0'
  compile 'com.facebook.fresco:webpsupport:0.11.0'

@basudz365
Copy link
Author

Thank you very much for the quick response!
After adding in the Gradle dependency you listed, my animated images now display correctly.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 23, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants