Install expo-cli package:
Note – I assume you already have NodeJS installed on your system if not install it before getting started on React Native.
Before starting to create new React Native project, we are going to need an expo-cli package installed globally.
Use following command to install expo-cli
$ npm install -g expo-cli
Create new react native application
Use following command to create React Native application
$ npx create-expo-app HelloReactNative $ cd HelloReactNative $ npm install
Start/run React Native application
$ npm start # or you can also use: npx expo start
Running your React Native application on ISO/iPhone
To run the application on your IOS device you should first needs to have Expo Go Mobile application installed on your iPhone, visit app store to install Expo application.
Open Expo Go application it is going to ask for few permissions, provide necessary permission’s
I assume you still have you HelloReactNative app running using npm start command if not please run the command again
In the output you should see QR code.
Open camera app on iPhone and scan the QR code to open React Native application on you Device.
Now you should have React Native app running on your Device Successfully.