skip to Main Content

I wrote a very nice application for personal use in React Native. I’m surprised I can’t build it and run it on my phone. In ReactJS, this is done in one command, doesn’t React Native have an easy way to do this? I’ve tried a lot already. I got the AAB file and tried running it with APKMirror Installer and other apps. This doesn’t work.

2

Answers


  1. If you’re using expo library, it will be very easy, all you need to do is scan qrcode when running it by

    expo start
    

    If you’re using without expo which is bare project you need to create apk file using below command for Android

    ./gradlew assembleDebug   // apk file for debugging
    ./gradlew assembleRelease   // apk file production for preview purpose
    ./gradlew bundleRelease // aab file for production to upload on Play Store
    

    Note: you need to copy all the file on your mobile or emulator to test it

    Reference :

    https://docs.expo.dev/

    https://developer.android.com/build/building-cmdline

    Login or Signup to reply.
  2. It is possible , check out this blog – click here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search