how to install a react native yarn 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: install react yarn
yarn create react-app my-appCopied
npm install -g yarn
yarn global add react-native-cli
react-native init sample
yarn create react-app my-appCopied