React-Native入门(文档http://reactnative.cn/docs/getting-started.html#content):
一、React-Native 环境配置:
1.参考文档:http://www.csdn.net/article/2015-09-24/2825787-react-native;2.安装三个东西:node(4.0以上)/watchman/flow
安装node命令:brew install node安装watchman命令: brew install watchman安装flow命令: brew install flow
3.安装react-native命令: npm install -g react-native-cli
iOS端:1.安装Xcode7.0或更高版本
android端:1.安装最新版的JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html;
2.安装Android-sdk:brew install android-sdk或者通过其它方式;
3.配置ANDROID_HOME环境变量:
Mac,往你的~/.bashrc,~/.bash_profile 或者你终端所用的其它配置文件中增加以下内容:
# 如果你是通过Homebrew安装SDK的,则加入下列路