mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	fix expo reload
This commit is contained in:
		| @@ -152,8 +152,13 @@ public class UpdateModuleImpl { | ||||
|                         reactHostDelegateField.setAccessible(true); | ||||
|                         Object reactHostDelegate = reactHostDelegateField.get(reactHost); | ||||
|  | ||||
|                         String bundleFieldName = "jsBundleLoader"; | ||||
|                         if (reactHostDelegate.getClass().getCanonicalName().equals("expo.modules.ExpoReactHostFactory.ExpoReactHostDelegate")) { | ||||
|                             bundleFieldName = "_jsBundleLoader"; | ||||
|                         } | ||||
|  | ||||
|                         // Modify the jsBundleLoader field | ||||
|                         Field jsBundleLoaderField = reactHostDelegate.getClass().getDeclaredField("jsBundleLoader"); | ||||
|                         Field jsBundleLoaderField = reactHostDelegate.getClass().getDeclaredField(bundleFieldName); | ||||
|                         jsBundleLoaderField.setAccessible(true); | ||||
|                         jsBundleLoaderField.set(reactHostDelegate, loader); | ||||
|                          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm