Skip to content

Commit

Permalink
Fixing exposing ReactDelegate through ReactActivity for reload() (#44227
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #44227

In #44223 kudo identified the incorrect return type.

Reviewed By: christophpurrer, philIip

Differential Revision: D56497700

fbshipit-source-id: 5d7fc7ef21c3d3033a2567eba51b613eb41f0a1a
  • Loading branch information
arushikesarwani94 authored and cipolleschi committed May 1, 2024
1 parent 165cabb commit 7a841db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public abstract class com/facebook/react/ReactActivity : androidx/appcompat/app/
protected fun <init> ()V
protected fun createReactActivityDelegate ()Lcom/facebook/react/ReactActivityDelegate;
protected fun getMainComponentName ()Ljava/lang/String;
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 Expand Up @@ -7697,4 +7697,3 @@ public class com/facebook/react/views/view/ViewGroupClickEvent : com/facebook/re
protected fun getEventData ()Lcom/facebook/react/bridge/WritableMap;
public fun getEventName ()Ljava/lang/String;
}

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();
}

@Override
Expand Down

0 comments on commit 7a841db

Please sign in to comment.