mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ReactRootView is Nullable in ReactDelegate (#46440)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46440 ReactDelegate does not properly annotate the ReactRootView field as Nullable. This fixes that. ## Changelog [Android][Fixed] Use appropriate Nullable attribute for ReactRootView field in ReactDelegate Reviewed By: philIip Differential Revision: D62514424 fbshipit-source-id: e9f10899007dfe794aa081717f5a5aa7d0038181
This commit is contained in:
committed by
Facebook GitHub Bot
parent
93b608d130
commit
cbddcfc691
+2
-1
@@ -29,7 +29,7 @@ import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
|
||||
public class ReactDelegate {
|
||||
|
||||
private final Activity mActivity;
|
||||
private ReactRootView mReactRootView;
|
||||
@Nullable private ReactRootView mReactRootView;
|
||||
|
||||
@Nullable private final String mMainComponentName;
|
||||
|
||||
@@ -305,6 +305,7 @@ public class ReactDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public ReactRootView getReactRootView() {
|
||||
if (ReactFeatureFlags.enableBridgelessArchitecture) {
|
||||
return (ReactRootView) mReactSurface.getView();
|
||||
|
||||
Reference in New Issue
Block a user