Bundle debug build:
$ react-native bundle --dev false --platform android --entry-file index.android.js \
--bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle \
--assets-dest ./android/app/build/intermediates/res/merged/debug
Create debug build:
$ cd android && ./gradlew assembleDebug
$ 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/
$ cd android && ./gradlew assembleRelease
Dev build
$ cd android && ./gradlew installDebug
Release build
$ cd android && ./gradlew installRelease
- Another approach might be to modify gradle scripts.