一、环境需求
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
创建项目
react-native init