安装MAC的ReactNative环境

brew install node
brew install watchman
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --glob
npm install -g yarn react-native-cli
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

https://reactnative.cn/docs/getting-started/

 http://reactnative.cn/docs/integration-with-existing-apps/

https://www.cnblogs.com/xiaoyouPrince/p/6668533.html(此处的index.ios.js在高版本应该为index.js)

 https://www.aliyun.com/jiaocheng/35793.html  发布操作

http://www.cocoachina.com/ios/20170511/19250.html

https://www.jianshu.com/p/5bdce8da4d88 iOS打包操作

 

导出js bundle的命令

在React Native项目的根目录下执行:

1
react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output release_ios/main.jsbundle --assets-dest release_ios/

 

创建文件:touch filePath

创建文件夹:mkdir fileDirPath

posted @ 2018-12-21 09:13  雨筱逸悠  阅读(150)  评论(0编辑  收藏  举报