React Native iOS配置教程

  1. 先安装 Homebrew http://brew.sh/node

  2. 安装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

        http://longtimenoc.com/archives/react-nativereact%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85%E5%8F%8A%E4%BD%BF%E7%94%A8-nuclide
atom

        若是安装慢,要换npm taobao源
插件

 8.提早下载好iOS开发要用的react native,不然直接初始化一个文件会很慢

    http://www.jianshu.com/p/62242e424bae        

9.初始化工程

    $ npm install -g react-native-cli
    $ react-native init AwesomeProject
相关文章
相关标签/搜索