React-Native-Remote-Update
React-Native-Remote-Update copied to clipboard
如何打包js为index.android.bundle文件
看了许久的官方文档,一直都没搞定打包成index.android.bundle文件
@hjjoe1213123 curl http://localhost:8081/index.ios.bundle -o main.jsbundle
commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 自己拼一下命令就可以输出了
举个例子 react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output app/src/main/assets/index.android.bundle --assets-dest app/src/main/res/
现在的版本是0.27,感觉用了这个例子之后 ,都崩溃了、是不是哪里有问题、bundle一加载,直接崩溃了、大神 ,能聊一下吗?
貌似新版本用不了 reactandroid方法都不一样了
@lj694580957 崩溃的log是什么,能否贴出来看看
@fengjundev 就是说,你git上的这个有点过老,新的直接 getJSBundleFile()
@lj694580957 你好,getJSBundleFile()这个方法在哪里呢?小白不懂java,不知道在哪里找,可以说一下路径吗?