This Article Part of React Native Tutorial Series want to start from scrach follow below link
when you want to quick setup follow expo cli but for large project, I recommend use react native cli.
Today, we setup expo for run react native app.
Install Node JS
for setup expo cli you have to download and instal node.js.
After install node.js open your CMD and install expo cli.
npm install expo-cli --global
Create React Native Project
using expo below cammand you can create new project.
expo init my-new-project
You will be asked to choose a template. Press Enter to choose Blank.
Run Expo Project
below command, change your current dir.
Run your project, using
expo start command
You should see something like with a QR code generated in the terminal
Running your react native on your Android or iOS devices
Click on below link to download the Expo client app to your Android device.
Open Expo then click the “Scan QR Code” and Scan the QR code in our terminal.
As soon as the QR code got scanned, it’ll automatically load and bundle/compile your project to run it in your device.
Click on below link to download the latest Expo client app to your iOS device.
With iOS 11, there is now a scan feature added to the camera. We can use this to scan the QR code and open the Expo client app.
Open up your camera app, then scan the QR code in our terminal until a notification badge pops on top telling us that we can open it in Expo client.
The QR Scan has been removed in Expo for iOS
However, if you’re not in iOS 11, there’s still an alternative way but not with scanning: — Open your Expo client app and sign up/login. — Open another new tab in your terminal and navigate to your react-native project directory and run.
expo send -s [email protected]
use the email that is logged in your expo app.
This will send an email to you with the link, clicking this link will open the app in expo. Then it’ll have your project up and running on your iPhone.