React-Native-Remote-Update
React-Native-Remote-Update copied to clipboard
使用React-Native实现app热更新的一次实践
0.29以后,反射重新加载这个不能使用了,作者有没有更好的方法来重新加载?
看了许久的官方文档,一直都没搞定打包成index.android.bundle文件
请问下,你这怎么更新图片呢
0.29版本之后,package注入以及jsbundle注入都是放在ReactApplicaiton中,可是直接重写getBundleAssetName和getJSBundleFile运行app没有效果~
com.facebook.react.bridge.JSExecutionException: SyntaxError: Unexpected end of script (line 5 in the generated bundle) at com.facebook.react.bridge.ReactBridge.loadScriptFromFile(Native Method) at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:34) at com.facebook.react.bridge.CatalystInstance$2.run(CatalystInstance.java:138) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31) at android.os.Looper.loop(Looper.java:136) at com.facebook.react.bridge.queue.MessageQueueThread$1.run(MessageQueueThread.java:137) at...
error when executing react-native start, any solution? │ Running packager on port 8081. │ │ │ │ Keep this packager running while developing on any JS projects. Feel │ │...
``` method.invoke(mReactInstanceManager, new JSCJavaScriptExecutor(), JSBundleLoader.createFileLoader(context, mainBundleFilePath)); ``` 在执行这一句时,抛出了一个IllegalAccessException异常,通过log可知是在ReactInstanceManagerImpl类中的下面这个方法中执行了UiThreadUtil.assertOnUiThread(); 该方法判断当前不在UI线程,于是抛出异常说“Expected to run on UI thread!” ``` private void recreateReactContextInBackgroundInner() { UiThreadUtil.assertOnUiThread(); if (mUseDeveloperSupport && mJSMainModuleName != null) { if (mDevSupportManager.hasUpToDateJSBundleInCache()) {...
Hi,尝试了用这种热部署的方式,但是中间发现一个问题,如何在调用Bundle以后通过自定义的返回按钮返回到初始化界面呢?尝试了很多方式,只有物理键盘的返回是成功的。
之前也想过类似的事情,有考虑过封装成一个独立的模块吗?