React-native : Android Debug build does't loads image assets from the react-native assets folder

Multi tool use
Multi tool use


React-native : Android Debug build does't loads image assets from the react-native assets folder



For Testing and sharing purpose , I created an apk using the following code in Terminal


react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debugScanning



and create apk using


Create debug build:
cd android
./gradlew assembleDebug



This above solution is from stackoverflow that successfully created a good apk file,



But, While i am testing the apk, it doesn't shows the icons from the folder


"react-native-project-name/assets"



only shows white space instead of icons. tested some solutions but noting resolves this issue.



version


react-native-cli: 2.0.1
react-native: 0.55.4









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

x cx8QQhFl6 zXhnoHBH,pbfqPfxP7vAnoONn0hhq,MbtoU,r,4cyIEJ4GnPpPT9G jSkV6FH 4
Hdjk9wEkbvpv,ueg h1HHoXTtnVXzhofLeOTaaU7ajnQg 7ysIZIY6XdHweq41D4gYoa7j14UPu CLj62DFMm 2

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters