File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/react-native/ReactAndroid
src/main/java/com/facebook/react Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ public class com/facebook/react/ReactDelegate {
158158 public fun onKeyLongPress (I)Z
159159 public fun onNewIntent (Landroid/content/Intent;)Z
160160 public fun onWindowFocusChanged (Z)V
161+ public fun reload ()V
161162 public fun shouldShowDevMenuOrReload (ILandroid/view/KeyEvent;)Z
162163}
163164
Original file line number Diff line number Diff line change @@ -225,6 +225,13 @@ public boolean onKeyLongPress(int keyCode) {
225225 return false ;
226226 }
227227
228+ public void reload () {
229+ DevSupportManager devSupportManager = getDevSupportManager ();
230+ if (devSupportManager != null ) {
231+ devSupportManager .handleReloadJS ();
232+ }
233+ }
234+
228235 public void loadApp () {
229236 loadApp (mMainComponentName );
230237 }
You can’t perform that action at this time.
0 commit comments