0
点赞
收藏
分享

微信扫一扫

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

RockYoungTalk 2022-06-28 阅读 49

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

安装

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

Homebrew

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

Nodejs

brew install node

react-native-cli

npm install -g react-native-cli

XCode

推荐安装的工具

watchman

brew install watchman

flow

brew install flow

Nuclide

测试

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

修改项目

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


举报

相关推荐

0 条评论