RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Create a key to sign the APK
keytool -genkey -v -keystore my-app-key.keystore -alias my-app-alias -keyalg RSA -keysize 2048 -validity 10000 Use a password when prompted
Once the key is generated, use it to generate the installable build:
react-native bundle --platform android --dev false --entry-file index.android.js \ --bundle-output android/app/src/main/assets/index.android.bundle \ --assets-dest android/app/src/main/res/
Generate the build using gradle
cd android && ./gradlew assembleRelease
Upload or share the generated APK
Upload the APK to your phone. The -r flag will replace the existing app (if it exists) adb install -r ./app/build/outputs/apk/app-release-unsigned.apk The shareable signed APK is located at: ./app/build/outputs/apk/app-release.apk
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website