Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

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,

  1. Go to google and search for react-native
  2. Go to the website react native dev and click on get started,
  3. Now go to the section Setting up the development environment
  4. Now select the React Native CLI quickstart
  5. 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.