Skip to content

React Native之开发环境 #2

Open

Description

@cssoul

1、OS X — 开发iOS应用所必须的环境

2、安装Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3、使用Homebrew安装Watchman和Flow

brew install watchman
brew install flow

4、Node.js 4.0+ 、npm

5、iOS & Android

6、开始做小demo

 npm install -g react-native-cli
 react-native init AwesomeProject
  • 注:由于网络原因,react-native命令行从npm官方源拖代码很慢,可以将npm仓库源替换为国内镜像:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

7、推荐阅读了解

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions