react-native創建工程有兩種方式
1.查看node版本,無論哪種方式都需要安裝node
node -v
第一種安裝方式
1.安裝expo-cli客戶端
npm install -g expo-cli
2.創建一個項目
expo init AAProject
cd AAProject
npm start
第二種安裝方式
1.安裝node和watchman
brew install node
brew install watchman
2.安裝腳手架工具
npm install -g react-native-cli
3.安裝xcode和命令行工具
4.創建一個工程
react-native init AAproject
cd AAproject
react-native run-ios