yarn command in react native code example
Example 1: yarn create react app
// Go into the folder where you wish to create your app
yarn create react-app appname
Example 2: install yarn in react native
npm install -g yarn
yarn global add react-native-cli
react-native init sample