diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java index 66ba98fc91c6df..8cc4e172a44d74 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java @@ -29,7 +29,7 @@ public class ReactDelegate { private final Activity mActivity; - private ReactRootView mReactRootView; + @Nullable private ReactRootView mReactRootView; @Nullable private final String mMainComponentName; @@ -305,6 +305,7 @@ public void loadApp(String appKey) { } } + @Nullable public ReactRootView getReactRootView() { if (ReactFeatureFlags.enableBridgelessArchitecture) { return (ReactRootView) mReactSurface.getView();