How do I create a React Native project using Yarn?

后端 未结 4 2053
不思量自难忘°
不思量自难忘° 2020-12-13 04:10

I am running the following commands in the DOS console on a Windows 7 (64-bit) machine.

npm install -g yarn
yarn add global react-native
yarn add global reac         


        
4条回答
  •  一生所求
    2020-12-13 04:36

    You got the order wrong. You should be

    yarn add global react-native-cli
    yarn add react-native
    react-native init sample
    

提交回复
热议问题