Local images are not visible in React-Native app release build
Solved by following answer of Chiranjhivi Ghimire
Steps -
- Created assets folder at ../android/app/src/main/
- copy and paste this command in command prompt
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
- enter this command in cmd gradle assemblerelease.
- done
equivalent solution for ios can be found at link
React Native local assets images not showing some time on release mode
You should try
cd android && ./gradlew assembleRelease
to see if your images are present in the generated release apk in the outputs folder. If so, then your release shouldn't have this issue.
React Native BareWorkflow images don't show when ios release build
I faced this problem too.
My steps to solve the problem were:
- execute
react-native bundle --entry-file ./index.js --platform ios --bundle-output ios/main.jsbundle --assets-dest ios
This command, among other things, creates main.jsbundle file and assets folder in ios directory
Add "main.jsbundle" and "assets" folder to 'Copy Bundle Resources'.
Rebuild project.
p.s This post helped me a lot https://stackoverflow.com/a/35366243
Hope these steps help you!
Image map wrongly in release build for React Native app
Fixed by downgrading fresco version from 2.6.0
to 2.5.0
implementation 'com.facebook.fresco:animated-gif:2.5.0'
Solution from
https://github.com/facebook/react-native/issues/32671
Related Topics
Android: How to Open a Specific Folder Via Intent and Show Its Content in a File Browser
Notification Disappears After Showing
Get City Name and Postal Code from Google Place API on Android
Getting Simple Json Object Response Using Retrofit Library
Retrofit 2 Json Response Json Array and Object
How to Avoid Overlap View in Relative Layout in Android
How to Remove Bottom Navigation View and Toolbar in Some Fragments If Using Navigation Controller
How to Install the App Twice Without Interference in Android
How to Post Raw Whole Json in the Body of a Retrofit Request
How to Set Up Android Studio to Work Completely Offline
How to Resolve Javax.Xml.Bind.Jaxbcontext in Eclipse
Navigating to Previous Fragment Without Reloading It
Check If Json Object Contains Specific Value
Full Screen Without Navigation & Status Bars
Android - How to Make a Button Click Play a Sound File Every Time It Been Pressed
Android Volley Basicnetwork.Performrequest() Unexpected Response Code 404
Programmatically Retrieve Imei Number for Dual Sim in Android