Skip to content

Commit

Permalink
Fixing exposing ReactDelegate through ReactActivity for reload() (fac…
Browse files Browse the repository at this point in the history
…ebook#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
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 24, 2024
1 parent 8b1a016 commit e25860f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ protected void onDestroy() {
mDelegate.onDestroy();
}

public void getReactDelegate() {
mDelegate.getReactDelegate();
public @Nullable ReactDelegate getReactDelegate() {
return mDelegate.getReactDelegate();
}

public ReactActivityDelegate getReactActivityDelegate() {
Expand Down

0 comments on commit e25860f

Please sign in to comment.