React-Native-Remote-Update icon indicating copy to clipboard operation
React-Native-Remote-Update copied to clipboard

如何打包js为index.android.bundle文件

Open hjjoe1213123 opened this issue 9 years ago • 8 comments
trafficstars

看了许久的官方文档,一直都没搞定打包成index.android.bundle文件

hjjoe1213123 avatar Feb 29 '16 09:02 hjjoe1213123

@hjjoe1213123 curl http://localhost:8081/index.ios.bundle -o main.jsbundle

Vidtion avatar Apr 11 '16 03:04 Vidtion

commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 自己拼一下命令就可以输出了

AlbertLiu-Breeze avatar May 13 '16 08:05 AlbertLiu-Breeze

举个例子 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/

dunhuang avatar Jun 11 '16 13:06 dunhuang

现在的版本是0.27,感觉用了这个例子之后 ,都崩溃了、是不是哪里有问题、bundle一加载,直接崩溃了、大神 ,能聊一下吗?

lj694580957 avatar Jun 15 '16 11:06 lj694580957

貌似新版本用不了 reactandroid方法都不一样了

dunhuang avatar Jun 16 '16 02:06 dunhuang

@lj694580957 崩溃的log是什么,能否贴出来看看

fengjundev avatar Jun 16 '16 02:06 fengjundev

@fengjundev 就是说,你git上的这个有点过老,新的直接 getJSBundleFile()

lj694580957 avatar Jun 17 '16 02:06 lj694580957

@lj694580957 你好,getJSBundleFile()这个方法在哪里呢?小白不懂java,不知道在哪里找,可以说一下路径吗?

appbeijing avatar Sep 27 '16 03:09 appbeijing