diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 173b7b75813eec..9c3626694e48cc 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -158,6 +158,7 @@ public class com/facebook/react/ReactDelegate { public fun onKeyLongPress (I)Z public fun onNewIntent (Landroid/content/Intent;)Z public fun onWindowFocusChanged (Z)V + public fun reload ()V public fun shouldShowDevMenuOrReload (ILandroid/view/KeyEvent;)Z } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java index 9650a57c9aeb88..16fdf3efda5866 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java @@ -225,6 +225,13 @@ public boolean onKeyLongPress(int keyCode) { return false; } + public void reload() { + DevSupportManager devSupportManager = getDevSupportManager(); + if (devSupportManager != null) { + devSupportManager.handleReloadJS(); + } + } + public void loadApp() { loadApp(mMainComponentName); }