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
Facebook GitHub Bot
parent
8b1a01610c
commit
e25860f07c
@@ -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
|
||||
|
||||
+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();
|
||||
}
|
||||
|
||||
public ReactActivityDelegate getReactActivityDelegate() {
|
||||
|
||||
Reference in New Issue
Block a user