1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

修正createFileLoader参数

This commit is contained in:
sunnylqm 2016-11-26 11:57:09 +08:00 committed by GitHub
parent ad2777c69d
commit ca04836667

View File

@ -125,7 +125,7 @@ public class UpdateModule extends ReactContextBaseJavaModule{
ReactInstanceManager instanceManager = ((ReactApplication) application).getReactNativeHost().getReactInstanceManager();
if (instanceManager.getClass().getSimpleName().equals("XReactInstanceManagerImpl")) {
JSBundleLoader loader = JSBundleLoader.createFileLoader(application, UpdateContext.getBundleUrl(application));
JSBundleLoader loader = JSBundleLoader.createFileLoader(UpdateContext.getBundleUrl(application));
Field jsBundleField = instanceManager.getClass().getDeclaredField("mBundleLoader");
jsBundleField.setAccessible(true);
jsBundleField.set(instanceManager, loader);