Issue
Hi I'm new to react native. I have created react native application and for testing I have get the debug apk as output. But once I installed on debug APK on real device some Images are not showing.. Anything wrong I have done ?
Solution
I think you haven't bundle your assets before generating debug apk
Try this code in your terminal for bundle all the assets and get debug apk as output
mkdir -p android/app/src/main/assets && rm -rf android/app/build && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && cd android && ./gradlew assembleDebug
Answered By - Akila Devinda
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.