Create keystore and app’s release bundle(.aab) file for android playstore
referring this link
Generating Upload key/keystore
keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
Clear android cache
$ cd android
$ gradlew clean
Generating release bundle .𝚊𝚊𝚋 file
We are now ready to create our app’s android bundle. Run the following commands in the terminal from the project’s root folder:
$ cd android
$ ./gradlew bundleRelease
The generated AAB can be found under android/app/build/outputs/bundle/release/app-release.aab
, and is ready to be uploaded to Google Play
Generating release bundle .𝚊pk file
$ cd android
gradlew assembleRelease
As a result, the APK creation process is done. You can find the generated APK at android/app/build/outputs/apk/app-release.apk. This is the actual app, which you can send to your phone or upload to the Google Play Store. Congratulations, you’ve just generated a React Native Release Build APK for Android.