iOS
RN在Mac系统的运行前期的环境配置相对较为简单,如下:
mac系统:react-native 需要Xcode7以上的
打开终端:
1. ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装 homebrew brew -v 检查是否成功
2. 安装node
3. 安装watchman brew install watchman 更新Xcode
4. npm install -g react-native-cli 安装脚手架
5. react-native init rn_project(项目名称)
6. cd rn_project
7. react-native run-ios