Create the first app in react native
In this chapter, you will learn about how to create my first app in react native. In order to create the first app in react native, follow the below steps,
- Go to google and search for react-native
- Go to the website react native dev and click on get started,
- Now go to the section Setting up the development environment
- Now select the React Native CLI quickstart
- Install the npm and node js, the detailed link is here How to install npm and node js How to install npm and node js
Now install the expo cli by running the below command
npm install expo-cli --global
Now open the terminal, to create a project, run the below command
expo init hello-my-first-app
Now it will ask to choose the template, just select the blank
Once installation completes, move to the directory, cd hello-my-first-app
Now run the npm start
Now it will open the new tab in the browser automatically,
Now open the expo app in android and scan the QR code,
It will open the App on your phone.