Fixing exposing ReactDelegate through ReactActivity for reload() (#44227)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44227

In https://github.com/facebook/react-native/pull/44223/ kudo identified the incorrect return type.

Reviewed By: christophpurrer, philIip

Differential Revision: D56497700

fbshipit-source-id: 5d7fc7ef21c3d3033a2567eba51b613eb41f0a1a
This commit is contained in:
Arushi Kesarwani
2024-04-24 00:20:54 -07:00
committed by Facebook GitHub Bot
parent 8b1a01610c
commit e25860f07c
2 changed files with 3 additions and 3 deletions
@@ -93,7 +93,7 @@ public abstract class com/facebook/react/ReactActivity : androidx/appcompat/app/
protected fun createReactActivityDelegate ()Lcom/facebook/react/ReactActivityDelegate;
protected fun getMainComponentName ()Ljava/lang/String;
public fun getReactActivityDelegate ()Lcom/facebook/react/ReactActivityDelegate;
public fun getReactDelegate ()V
public fun getReactDelegate ()Lcom/facebook/react/ReactDelegate;
protected final fun getReactInstanceManager ()Lcom/facebook/react/ReactInstanceManager;
protected final fun getReactNativeHost ()Lcom/facebook/react/ReactNativeHost;
public fun invokeDefaultOnBackPressed ()V
@@ -65,8 +65,8 @@ public abstract class ReactActivity extends AppCompatActivity
mDelegate.onDestroy();
}
public void getReactDelegate() {
mDelegate.getReactDelegate();
public @Nullable ReactDelegate getReactDelegate() {
return mDelegate.getReactDelegate();
}
public ReactActivityDelegate getReactActivityDelegate() {