reactjsreact-nativereactjs-flux

React Native Android: Static Image is not showing in production released apk


I have static image in my react-native app accessing via

  <Image source={require("../assets/preview-full-img-title-logo@2x.png")} />

in development it is showing well but in production release APK is not showing what can be the reason? I have followed steps mention here.

https://facebook.github.io/react-native/docs/signed-apk-android.html

Solution

  • This is the command that did it for me:

    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/

    take a look at github issue>