setting up a react native project with cli code example
Example 1: react native cli create project
npx react-native init AwesomeProject
Example 2: 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