question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Android app doesn't display ANY image after adding Fresco in React Native 0.59.9

See original GitHub issue

Description

My React Native app was working perfectly until I needed GIF support in Android. I’ve added Fresco and no images are (even existing JPEGs and PNGs that used to display before adding Fresco) are displayed (they’re just blank) and I’m getting many errors about com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory not found.

Reproduction

  • Have a React Native project. (0.59.9)
  • Add the following to build.gradle:

implementation 'com.facebook.fresco:animated-gif:1.12.0'

  • Sync the project.

Additional Information

  • Fresco version: 1.12
  • Platform version: Android 8.1

I’ve also seen https://github.com/facebook/fresco/issues/2238 but I don’t understand the solution or what to do.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
vijay-dadhich09commented, Sep 6, 2019

I am facing the same issue with RN 0.59.8 below is the code but still not showing images. implementation ‘com.facebook.fresco:nativeimagetranscoder:1.12.0’

// For animated GIF support
compile 'com.facebook.fresco:animated-gif:1.10.0'

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

// For WebP support, without animations
compile 'com.facebook.fresco:webpsupport:1.10.0'
1reaction
oprisnikcommented, Sep 4, 2019

It is on bintray / jCenter though, so it should work: https://bintray.com/facebook/maven/com.facebook.fresco%3Anativeimagetranscoder

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native: Images not showing in android device
My problem was that the Image is displaying ok on iOS but not showing on android (devices). So my issue got fixed by...
Read more >
Image - React Native
A React component for displaying different types of images, including network images, static resources, temporary local images, and images ...
Read more >
React Native Tutorial for Beginners - YouTube
React Native Tutorial for Beginners - Learn to build an amazing React Native app for iOS & Android. Get the full...
Read more >
Instrument mobile apps with Dynatrace React Native plugin
The React Native plugin allows you to auto-instrument your React Native app with Dynatrace OneAgent for Android and iOS. It provides an API...
Read more >
react-native: Versions - Openbase
This version is a patch release addressing the Android build issue that has been ongoing since Nov 4th 2022. If you are on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found