react native build apk
'
For apk : cd android && ./gradlew assembleRelease
For aab : cd android && ./gradlew bundleRelease
,
react native build apk
'
For apk : cd android && ./gradlew assembleRelease
For aab : cd android && ./gradlew bundleRelease
,
build apk from react native
React Version 0.62.1
In your root project directory
Make sure you have already directory => android/app/src/main/assets/,
if not create directory, after that
create new file and save as index.android.bundle
and put your file like this android/app/src/main/assets/index.android.bundle
///////////////////////
// building bundles //
//////////////////////
npx 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/
///////////////////////
// building Debug Apk //
//////////////////////
cd android && ./gradlew assembleDebug
///////////////////////
/////Get the Apk/////
//////////////////////
cd app/build/outputs/apk/
///////////////////////
// building Release Apk //
//////////////////////
cd android && ./gradlew assembleRelease
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us