react-native

React Native - Build APK

You can build APK (debug) from your react native project by using three commands.

Abhith Rajan
Abhith RajanApril 24, 2018 · 1 min read · Last Updated:

First

react-native bundle —dev false —platform android —entry-file index.js —bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle —assets-dest ./android/app/build/intermediates/res/merged/debug

Second

cd android

Final

./gradlew assembleDebug

Once all three commands executed successfully. You can find the generated APK on

Project root directory > android > app > build > outputs > apk > app-debug.apk

As the name suggests, this is not a release version. But still, you can share it with testers. I use hockeyapp to do the distribution.

This page is open source. Noticed a typo? Or something unclear?
Improve this page on GitHub


Abhith Rajan

Written byAbhith Rajan
Abhith Rajan is a software engineer by day and a full-stack developer by night. He's coding for almost a decade now. He codes 🧑‍💻, write ✍️, learn 📖 and advocate 👍.
Connect

Is this page helpful?