2025-08-25 — By Siddharth Jain · 6 min read
Building a React Native Android app is exciting—but sharing your creation as an APK file is even more rewarding! Whether you want to test your app on a real device or distribute it outside the Play Store, this guide will help you generate a signed APK using the React Native CLI in a straightforward, non-copy-righted format.
java -version
A keystore secures and authenticates your app.
Open a terminal and run:
keytool -genkey -v -keystore my-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
my-key.keystore
in android/app
Add your keystore details in android/gradle.properties
(or as variables):
MYAPP_RELEASE_STORE_FILE=my-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=your_keystore_password
MYAPP_RELEASE_KEY_PASSWORD=your_key_password
In android/app/build.gradle
, make sure the signingConfigs
block refers to these variables (usually it's handled for you in modern React Native).
Navigate to your project’s android
folder:
cd android
Run the Gradle command:
./gradlew assembleRelease
gradlew assembleRelease
On success, your signed APK will be here:
android/app/build/outputs/apk/release/app-release.apk
Move this file to your Android device for installation or distribute as needed.
./gradlew clean
Exporting your React Native app as an APK file puts your app in users’ hands directly, making testing and sharing a breeze.
Build, test, and impress—right from your terminal!