androidreact-nativeapk

React Native - Build APK


I created a React Native App and want to run it without connecting my phone to my PC.

I want to build the Android APK for that. How can I do that?


Solution

  • To make Android APK:

    Go to Android directory:

     cd android
    

    Type and run this command:

    ./gradlew assembleRelease
    

    Now wait for the build to complete.

    After completing the build your APK generated on this path:

    ./app/build/outputs/apk/app-release.apk