React Native入门学习笔记二(环境搭建Mac+ios)

前端之家收集整理的这篇文章主要介绍了React Native入门学习笔记二(环境搭建Mac+ios)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

React Native入门二 环境搭建Mac+iOS


安装

参考网站:
http://facebook.github.io/react-native/docs/getting-started.html
这是中文
http://reactnative.cn/docs/0.27/getting-started.html

Homebrew

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

Nodejs

@H_404_13@brew install node

react-native-cli

@H_404_13@npm install -g react-native-cli

XCode

推荐安装的工具

watchman

@H_404_13@brew install watchman

flow

@H_404_13@brew install flow

Nuclide

测试

@H_404_13@react-native init AwesomeProject cd AwesomeProject react-native run-iso

修改项目

打开index.ios.js 修改,在iOS 模拟器里案件:⌘-R,查看修改结果。

猜你在找的React相关文章