ReactNative -(項目發(fā)布步驟)

這篇就是在本地開發(fā)完成了準(zhǔn)備上線

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

默認(rèn)打開的界面是這個的

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.itdecent.cn/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.itdecent.cn/p/bb7c5f1d304e

命令都是在項目的根目錄才能執(zhí)行的

下載更新包的工具

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.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容