-
在iOS端运行:
- 1.在
reactnative
目录下npm install
- 2.在项目目录下
pod install
- 3.在
reactnative
目录下npm start
- 4.打开
Helloworld.xcworkspace
运行
- 1.在
-
在web端运行:
- 1.安装react-web-cli工具:
npm install react-web-cli -g
- 2.在
reactnative
目录下npm install
- 3.在
reactnative
目录下react-web start
- 4.浏览器中打开
http://localhost:3000
运行
- 1.安装react-web-cli工具:
具体详见博客 react-web使用