Date Posted: 15-02-2018

In this post we will explain how to run react native android application  in emulator.

Step 1: Install the android studio and create any virtual emulator and run the emulator.

Step 2: We have assumed you already configured or created the application.

Step 3: You need to  (in project directory) mkdir android/app/src/main/assets

Step 4: Open the terminal and run the following command respective project.

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

Step 5: Run the application using following command

react-native run-android

 

 

 

 

Leave a Reply