DEV Community

Zilu Ramkrishna Rane
Zilu Ramkrishna Rane

Posted on

React Native Build APK Generate release mode APK for React-Native project to publish on PlayStore

Good Day All! I hope you are doing Good.

From last couple of days, Me and my friends were doing comparative study of ionic3 and react-native. During that period, we were struggling to generate release mode APK for React-Native project.

Finally, we came across following solution:

Create and then copy a keystore file to android/app

keytool -genkey -v -keystore mykeystore.keystore -alias mykeyalias -keyalg RSA -keysize 2048 -validity 10000

Setup your gradle variables in android/


Add signing config to android/app/build.gradle

android {
signingConfigs {
release {
buildTypes {
release {
signingConfig signingConfigs.release

Generate your release APK:

cd android && ./gradlew assembleRelease

Your APK will get generated at: android/app/build/outputs/apk/app-release.apk

Special Thanks to Tyler Buchea :

Top comments (27)

mrcflorian profile image

Thanks for the tutorial! I've put up an article containing several errors that I encounter when building a release APK for React Native pretty frequently.

anatechng profile image
Anaga Uche • Edited

I love your article, thanks

zilurrane profile image
Zilu Ramkrishna Rane

Thanks mrcflorian

textoro profile image

Hi Zilu. Follow your instructions, obtain error:

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle '' is packaged correctly for release.

egiesem profile image

don't run debug version, to create apk release version first you must run:
npx react-native run-android --variant=release
react-native run-android --variant=release

Then APK can be found in android/app/build/outputs/apk/release

zilurrane profile image
Zilu Ramkrishna Rane

You get this error after running which command?
Could you please provide more details.

jimmykottorson profile image
Jhone Pterbok

To publish a React Native project on PlayStore, generate a release mode APK using the command line or Android Studio. Then, sign and align the Drama live Mod APK before uploading it.

robinhood profile image

Thanks for the information Jhone Pterbok. I was facing this problem when trying to build a project like Easy Talk Global Calling Mod apk.

thelaptopsguide profile image

Thanks for the very helpful tips. I’ve been using colored pencils for a few years now and been really happy with them, and yet there are still so many things you suggest that never occurred to me. If you want asnwer of your question then you can visit, for sure you will find eveything you are asking for I go through white pencils like crazy, too. Blending, all kinds of things–yet it didn’t occur to me that I should be using the white pencil first to get those nice bright spots. Such a simple thing, and yet…I didn’t catch on to what I’d been doing wrong till now. Thank you so much!

jbernibe profile image

Hello my friend, i did the procedure above, but dont work, it show me the next message :
"Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0"
Could you Please help me whit that.

jamktroplando profile image
Jamktro Plando

Hello, I have enabled ProGuard, resulting in the generation of four distinct APKs. Could you please guide me on how to publish them on the Google Play Store Like SnapTik MOD APK?

tecnologynew profile image

Hi Zilu. Follow your instructions, obtain error:

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle '' is packaged correctly for release.

jamedokokalena profile image
Jamedo Kokalena

To publish a React-Native project on the PlayStore, you need to generate a release mode APK (Android Package Kit). This can be done by running the command "react-native run-android --variant=release" in the project directory, which will create a signed APK file. You can then upload this file to the PlayStore Console to release your app like Snapseed MOD APK. It is important to note that you will need to have a valid keystore file and signing key for this process.

maxprogramming profile image
Max Programming

I am using Expo to build my app so is there an easy way to do so in Expo? Because I don't have an android folder in my directory structure

emicarito92 profile image
Emicarito ★

Hi Zilu,

If you are in Windows the last command is cd android && gradlew assembleRelease

whitout the "./"

ayesh_nipun profile image
Ayesh Nipun

Thanks for the article. The app was built without errors. But when I install it on my device and run the app, App keeps stopping with the message "App keeps stooping"

apk2d profile image

The online APK downloader I found at the best Apk2Down provider for you, a reliable address for every device used.

artikbharoliya profile image

Hey, I have enabled proguard and it generated 4 different apks. How can I publish those on Google Plasystore.???

elizabethsawan profile image
elizabeth sawan

mode apk of a react native application doesn't allow on PlayStore as a developer has developed this Instagram pro Apk which is not available on Playstore.

jagannathswarnkar profile image
jagan • Edited

build successfull,
but there is no release build,
there is only debug apk

I got only app.aab

Some comments may only be visible to logged-in visitors. Sign in to view all comments.