diff --git a/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java b/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java index a302f5b..31ae21a 100644 --- a/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java +++ b/android/src/main/java/cn/reactnative/modules/update/UpdateModuleImpl.java @@ -150,14 +150,17 @@ public class UpdateModuleImpl { if (getReactDelegateMethod != null) { ReactDelegate reactDelegate = (ReactDelegate) getReactDelegateMethod.invoke(currentActivity); - reactDelegate.reload(); + + // Try to get reload method using reflection + java.lang.reflect.Method reloadMethod = + ReactDelegate.class.getMethod("reload"); + if (reloadMethod != null) { + reloadMethod.invoke(reactDelegate); + } else { + throw new NoSuchMethodException(); + } } else { - currentActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - currentActivity.recreate(); - } - }); + throw new NoSuchMethodException(); } } catch (Throwable e) { currentActivity.runOnUiThread(new Runnable() {