Zapes
Search…
Build App for Android
In this part, we will guide how to run the mobile for Android.
NOTE: before start this tutorial, you MUST make sure install SAMPLE REACT NATIVE app successfully.
Check the tutorial below:
Setting up the development environment · React Native
reactnative

1/ Run emulator device via Android Studio

  1. 1.
    Open Android Studio (In our case, we used version 3.1.3).
  2. 2.
    Click “Open an existing Android Studio project” and select the android folder then click open.
  3. 3.
    Select the required emulator and click ok (In our case, we used Nexus 5X API 28 x86).
  4. 4.
    Click the green play button to run the app.
  5. 5.
    Run the emulator device.
1. Open Android Studio:
2. Click “Open an existing Android Studio project” and select android folder then click open:
3. Choose the required emulator and click Play button:
4. Click the green play button to run the emulator:

2/ Build app via Terminal / Shell Windows

* Please ensure that when you open the file, you are at the right folder.
1. Open Visual Studio Code, open 2 terminal and access to the right your folder app via this code:
1
cd app/app-zapes
Copied!
2. Please ensure you open the emulator first, use the below command to verify whether our mobile device is connected or not.
1
adb devices
Copied!
If phone emulator is opened, it will be shown here.
3. Then install npm packages dependencies
1
npm install
Copied!
4. Run this code to open app on the emulator:
1
react-native run-android
Copied!
5. After app-building success, the app will show on mobile like below.
Zapes Mobile App
Last modified 1yr ago