mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	修正createFileLoader参数
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm