I use
react-native bundle --entry-file "index.android.js" --platform "android" --bundle-output "./assets/index.android.bundle" --verbose
to pack a package of JS code and put it in assets, it works, but local image resources cannot be displayed, local image resources are located in a folder ./App/Img/and will be used in:
const icon1 = require('./App/Img/slider.png');
How can I link these resource files so that I can generate one running apk.
source
share