Local images are not visible in React-Native app release build
Solved by following answer of Chiranjhivi Ghimire
- 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.
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:
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'.
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