Now its easier to create and share the apk file to test in different environments. In react native we can bundle and release the apk with jus 2 steps.
- Create bundle
If you dont have the assets folder inside the android\app\src\main , Create it before running the below comment.
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/ - Create release
gradlew assembleDebug
Now your apk file will be ready to share as unsigned under the folder - android\app\build\outputs

0 Comments