yarn react native project setup code example
Example 1: install yarn in react native
npm install -g yarn
yarn global add react-native-cli
react-native init sample
Example 2: yarn react native cli
yarn add react-native-cli
npm install -g yarn
yarn global add react-native-cli
react-native init sample
yarn add react-native-cli