Skip to content

Commit e25860f

Browse files
Fixing exposing ReactDelegate through ReactActivity for reload() (facebook#44227)
Summary: Pull Request resolved: facebook#44227 In facebook#44223 kudo identified the incorrect return type. Reviewed By: christophpurrer, philIip Differential Revision: D56497700 fbshipit-source-id: 5d7fc7ef21c3d3033a2567eba51b613eb41f0a1a
1 parent 8b1a016 commit e25860f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public abstract class com/facebook/react/ReactActivity : androidx/appcompat/app/
9393
protected fun createReactActivityDelegate ()Lcom/facebook/react/ReactActivityDelegate;
9494
protected fun getMainComponentName ()Ljava/lang/String;
9595
public fun getReactActivityDelegate ()Lcom/facebook/react/ReactActivityDelegate;
96-
public fun getReactDelegate ()V
96+
public fun getReactDelegate ()Lcom/facebook/react/ReactDelegate;
9797
protected final fun getReactInstanceManager ()Lcom/facebook/react/ReactInstanceManager;
9898
protected final fun getReactNativeHost ()Lcom/facebook/react/ReactNativeHost;
9999
public fun invokeDefaultOnBackPressed ()V

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ protected void onDestroy() {
6565
mDelegate.onDestroy();
6666
}
6767

68-
public void getReactDelegate() {
69-
mDelegate.getReactDelegate();
68+
public @Nullable ReactDelegate getReactDelegate() {
69+
return mDelegate.getReactDelegate();
7070
}
7171

7272
public ReactActivityDelegate getReactActivityDelegate() {

0 commit comments

Comments
 (0)