In the terminal run these commands:
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
Then the apk file is here:
projectName/android/app/build/outputs/apk/debug/app-debug.apk
Leave a Reply