react-native

React Native - Build APK

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

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.

Written by Abhith Rajan
Abhith Rajan is an aspiring software engineer with more than 8 years of experience and proven successful track record of delivering technology-based products and services.
Buy me a coffee

Was this helpful?

👈 This is a live react editor.

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