先安裝 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