React-native: Images not showing in android device; but shows perfectly in emulator
The problem was with my bundle packaging command. As @luwu said in his comment, I checked this, and surprised that there is no difference with mine. Then only I noticed a message while running the command
"Assets destination folder is not set, skipping..."
That message was bit confusing since bundle was already created in the assets folder. The 'Assets' in that messages actually indicates my images. And I solved the issues with the following command:
react-native bundle --platform android --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --dev false --reset-cache --assets-dest android/app/src/main/res/
React-Native - Image not showing in Android emulator
My emulator just didn't have network..
Related Topics
Access Ro.Serialno from Native in Android 8
Cannot Keep Android Service Alive After App Is Closed
Android: Textview: Remove Spacing and Padding on Top and Bottom
How to Send a Firebase Notification to All Devices Via Curl
Android: How to Scale a Bitmap to Fit the Screen Size Using Canvas/Draw Bitmap
Android Q, Programmatically Connect to Different Wifi Ap for Internet
Cannot Resolve Symbol Appcompatactivity - Support V7 Libraries Aren't Recognized
Keep Screen Alive and App in Front of Lockscreen
Change Button Text Color When Pressed
Storage Permission Error in Marshmallow
Why Does My Button Not Showing in the Layout
How to Measure Distance to Object With Camera
Reload Recyclerview from Within the Adapter of the Recycler View
How to Get the Current Time on a Button Click
Clear Cache in Android Application Programmatically
How to Programmatically Change the Colour of a Textview, to a Colour Saved in an Attributes File
Android Studio Inline Compiler Showing Red Errors, But Compilation With Gradle Works Fine
How to Make Image Fill Relativelayout Background Without Stretching