Skip to content

Commit

Permalink
ReactRootView is Nullable in ReactDelegate (#46440)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
rozele authored and facebook-github-bot committed Sep 12, 2024
1 parent 93b608d commit cbddcfc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class ReactDelegate {

private final Activity mActivity;
private ReactRootView mReactRootView;
@Nullable private ReactRootView mReactRootView;

@Nullable private final String mMainComponentName;

Expand Down Expand Up @@ -305,6 +305,7 @@ public void loadApp(String appKey) {
}
}

@Nullable
public ReactRootView getReactRootView() {
if (ReactFeatureFlags.enableBridgelessArchitecture) {
return (ReactRootView) mReactSurface.getView();
Expand Down

0 comments on commit cbddcfc

Please sign in to comment.