yarn react native older than npx code example
Example 1: create react app with npm not yarn
npx create-react-app my-app --use-npm
Example 2: install yarn in react native
npm install -g yarn
yarn global add react-native-cli
react-native init sample