demo地址http://www.oschina.net/p/reactnative
http://my.oschina.net/luyongfugx/blog/394427#OSC_h1_1 翻译得很好
安装react native:按照官网 http://facebook.github.io/react-native/docs/getting-started.html
brew install node#安装node watchman flow brew install watchman#:遇到xz需要重新安装问题,于是brew install xz brew install flow sudo npm install -g react-native-cli#安装 react-native本身 mac需要sudo sudo react-native init AwesomeProject#输入命令建立工程 利用xcode打开当前目录的AwesomeProjectcommond+r两次则可以运行
时间: 2024-11-09 09:34:22