To do so, open Android Studio, then click "Open an existing Android Studio Project" as shown in the screenshot below: The first step is building the app on Android Studio. Step 3: Run your React Native app with "react-native run-android" command If you have successfully opened your Android device emulator as shown in the screenshot above then it's time to move to the next step. The last and final step is to run your React Native app in the opened Android emulator. To do so, open Visual Studio Code (or your preferred code editor) then click "Open Folder" and open the root directory of your React Native app (not the Android directory). Then, click View > Integrated Terminal to be able to run commands in the integrated terminal inside Visual Studio Code. You can run commands in any external terminal but for the purpose of this post, we are going to use the integrated terminal. Once the integrated terminal is opened, you can start writing the "react-native run-android" command. In the Android folder of your project, click Open. This command will start building your app using the installed Gradle compiler shipped with the Android Studio then run the Metro bundler to bundle your app and execute the app on the emulator as shown in the following screenshots. Select your device at the top of the Android studio window and click play to start the build.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |