how to generate an apk file from terminal react native android code example
Example 1: react-native android build apk
cd android
./gradlew assembleRelease
Example 2: build apk react native
$ keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000