How to create bundle in React Native with cmd


Firstly  please update your Android Studio and you App SDK.

Now run this command in shell

Under Project Dir :
cd  ./android

Create a debug bundle.
./gradlew bundleDebug

build your bundle
./gradlew bundle

If you want to create an APK from that bundle follow this command

java -jar C:/bundletool-all-0.7.1.jar build-apks --bundle=./app/build/outputs/bundle/release/app.aab --output=./app/build/outputs/my_app.apks --ks=./app/keystore.keystore --ks-key-alias=alisaName
Note: please make sure you copy this command correctly and paste it as a single row  

You can download bundletool from Here

Comments