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:
Eric Rozell
2024-09-12 14:34:46 -07:00
committed by Facebook GitHub Bot
parent 93b608d130
commit cbddcfc691
@@ -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();