React-Native building an apk for debug to run independent of Metro server

Build your Android and iOS Apps compatible to 4 Android Versions (for 93% users) Users and 2 iOS Versions (for 92% users)
January 16, 2018

Step 1: Go to project directory and run this command in terminal

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

Step 2: Go to android directory

cd android/

Step 3: In android path run this command

./gradlew assembleDebug

Step 4 : Go to this folder and check the apk file

your_project-> android-> app-> build-> outputs-> apk-> debug-> app-debug.apk

Now apk file generated , you can install the app-debug.apk in your android mobile

Leave a Reply

Your email address will not be published. Required fields are marked *