mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Riccardo Cipolleschi
parent
165cabb21f
commit
7a841dbcd1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user