Skip to content

Commit

Permalink
Stop ReactSurface in ReactDelegate::onHostDestroy (bridgeless) (#44873)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #44873

Changelog: [Internal]

As per title.

Differential Revision: D58411605
  • Loading branch information
fabriziocucci authored and facebook-github-bot committed Jun 11, 2024
1 parent 3c3c687 commit 501f63e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ public void onHostPause() {

public void onHostDestroy() {
if (ReactFeatureFlags.enableBridgelessArchitecture) {
if (mReactSurface != null) {
mReactSurface.stop();
mReactSurface = null;
}
mReactHost.onHostDestroy(mActivity);
} else {
if (mReactRootView != null) {
Expand Down

0 comments on commit 501f63e

Please sign in to comment.