一、環(huán)境需求
1.1 安裝Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1.2 安裝npm 和 Node.js
https://nodejs.org/en/download/
1.3 安裝WatchMan
brew install watchman
1.4 安裝Flow
brew install flow
二、React Native安裝
sudo npm install -g yarn react-native-cli
創(chuàng)建項目
react-native init