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 Riccardo Cipolleschi
parent 165cabb21f
commit 7a841dbcd1
2 changed files with 3 additions and 4 deletions
@@ -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
@@ -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;
}
@@ -65,8 +65,8 @@ public abstract class ReactActivity extends AppCompatActivity
mDelegate.onDestroy();
}
public void getReactDelegate() {
mDelegate.getReactDelegate();
public @Nullable ReactDelegate getReactDelegate() {
return mDelegate.getReactDelegate();
}
@Override