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.

ios: Local image not rendering

See original GitHub issue

Using FastImage with source={{ uri: 'local_uri' }} does not work on ios. Works fine on android, or if I use some remote url instead. Tried with different styles. Setting fallback true doesn’t seem to do anything either.

Currently on "react-native-fast-image": "^5.1.2", and "react-native": "0.57.7"

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:15
  • Comments:24

github_iconTop GitHub Comments

14reactions
valeriashpinercommented, Sep 26, 2019

I found solution. If your image like this require('someImage.png'), you should put width and height for it with styles and it will work.

8reactions
loikfbcommented, Jun 18, 2019

I have same issue. have any suggest to solve it?

Just use Image from react-native on IOS, my rendering issue with images was only on Android. Even with a release build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios: Local images are not rendering in 0.62.2 #29237 - GitHub
I am rendering local images, using the 'Image' component, on android, with path like file:///data/user/0/com.xxxx/files/ ...
Read more >
React-native iOS not showing images (pods issue)
Images issue is seen in Xcode12 builds and the fix if you are not running latest react-native version or not planning to upgrade...
Read more >
Local Images not rendering in React Native Expo FIX
However, this only works when the local image (png, jpg, jpeg, etc.) is included in the same folder as the Image component being...
Read more >
react-native iOS app not showing static/local assets ... - YouTube
iOS : react-native iOS app not showing static/ local assets ( images ) after deploying [ Beautify Your Computer ...
Read more >
Image is not loading(iOS14) | React Native Tutorial
Image is not loading in iOS 14 ... This issue is fixed and merged to react native latest version. But if you want...
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