react native cli install code example

Example 1: react native installation

npm install -g react-native-cli

//cd to the file where your react native projects will be 
react-native init albums

// Run instructions for  IOS/Android
cd projects/albums 

npx react-native run-ios
npx react-native run-android

Example 2: react native init project

react-native init AwesomeProject

Example 3: react native install

npm install -g react-native-cli

Example 4: install react native cli

if you have nodejs in your system then open terminal and install 
react-native-cli globly  via 

sudo yarn add react-native-cli


npm install yarn  (if donot have yarn install)

to check nodejs via node -v and check package manager via npm -v