

Then, your app execution begins in another prompt you can see its status. Open command prompt, browse through your project folder and, execute the react-native run-android command. Then, select Marshmallow and click on next.įinally, click on the Finish button to finish the AVD configuration.Īfter configuring your virtual device click on the play button under the Actions column to start your android emulator. Step 9: Configuring AVD ManagerĬhoose a device definition, Nexus 5X is suggestable.Ĭlick on the Next button you will see a System Image window. To configure the AVD Manager click on the respective icon in the menu bar. Visit the web page and download android studio.Īfter downloading the installation file of it, double click on it and proceed with the installation. Ignore this error and run react native for android using the following command −īut, before that you need to install android studio. Though your project ejected successfully, you may get an error as − Then, you should suggest the name of the app on home screen and project name of the Android studio and Xcode projects.

This prompts you options to eject, select the first one using arrows and press enter. If you want to run android emulator using android studio, come out of the current command line by pressing ctrl+c. Install expo client in your android devise and scan the above obtained QR code. If everything went well you will get a QR code as shown below.Īs instructed, one way to run react native apps on your android devise is to using expo. To verify the installation browse through the project folder and try starting the project using the start command.Ĭ:\Users\Tutorialspoint\Desktop>cd MyReactNativeĬ:\Users\Tutorialspoint\Desktop\MyReactNative>npm start You can install react native command line interface on npm, using the install -g react-native-cli command as shown below. In addition to these it is recommended to install latest version of yarn to avoid certain issues.


Make sure you have Python NodeJS and jdk8 installed in your system if not, install them. You can follow our NodeJS Environment Setup tutorial to install NodeJS.Īfter installing NodeJS and NPM successfully in your system you can proceed with installation of create-react-native-app (globally as shown below).Ĭ:\Users\Tutorialspoint> npm install -g create-react-native-appīrowse through required folder and create a new react native project as shown below.Ĭ:\Users\Tutorialspoint\Desktop>create-react-native-app MyReactNativeĪfter executing the above command, a folder with specifies name is created with the following contents. We will use OSX as our building platform. There are a couple of things you need to install to set up the environment for React Native.
