-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
React Native Image on Android fails to display images loaded with require()
#27408
Comments
Got the same issue on Android, it's only able to load local images when placing images within the specific app folder. Not any libs folder. |
this is the issue for react native that images is not showing in android for debug mode: facebook/react-native#25290. you can see the image with release mode by running: also, when debugging your repo, I also changed the line
in file apps/mobile/android/app/build.gradle to:
|
@xiongemi Thanks for your response on this issue. |
Hi @kanafghan , do you have any further investigation on this issue? |
Current Behavior
React Native (RN) Image on Android fails to display images loaded with
require()
, i.e.:Expected Behavior
The images should be displayed as it is the case on iOS
GitHub Repo
https://github.com/kanafghan/nx-rn-image-android
Steps to Reproduce
git clone [email protected]:kanafghan/nx-rn-image-android.git && cd nx-rn-image-android
nx run-android mobile
and the console will show the following logs:
ss-nx-rn-image-android-logs.pdf
Now, run the iOS version, i.e.
nx run-ios mobile
, and you should see the following:Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: