ReactNative -(项目发布步骤)

这篇就是在本地开发完成了准备上线

React-native bundle --entry-file index.android.js --bundle-output ./android/app/src/main/assets/index.android.jsbundle --platform android --assets-dest ./android/app/src/main/res/ --dev false

默认打开的界面是这个的

react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

android  借鉴大神

http://www.jianshu.com/u/6e613846e1ea

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

借鉴大神

http://www.jianshu.com/p/bb7c5f1d304e

命令都是在项目的根目录才能执行的

下载更新包的工具

https://github.com/remobile/react-native-file-transfer



引入三方框架的操作

http://reactnative.cn/docs/0.45/linking-libraries-ios.html

npm install @remobile/react-native-file-transfer --save

链接原生依赖:

react-native link


http://localhost:8081/debugger-ui

http://localhost:8081/debugger-ui.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容