先安装 Homebrew http://brew.sh/node
安装nvm .https://github.com/creationix/nvm#installation
react
若是安装失败,先touch ~/.bash_profilegit
3.安装node brew install nodegithub
4.安装watchman brew install watchman npm
5.安装flow brew install flowreact-native
6.下载安装Atom这个IDE https://atom.io/
bash
7.安装nuclide这个React native插件进Atom ide
若是安装慢,要换npm taobao源
插件
8.提早下载好iOS开发要用的react native,不然直接初始化一个文件会很慢
http://www.jianshu.com/p/62242e424bae
9.初始化工程
$ npm install -g react-native-cli $ react-native init AwesomeProject