[LOCAL] Backout #46896 - Attempt to fix #50274 (#52515)

This commit is contained in:
Rob Hogan
2025-08-13 10:50:18 +01:00
committed by Riccardo Cipolleschi
parent a8539190fe
commit db600b2e9e
2 changed files with 2 additions and 5 deletions
@@ -1399,14 +1399,14 @@ public class ReactInstanceManager {
new RuntimeException(
"detachRootViewFromInstance called with ReactRootView with invalid id"));
}
clearReactRoot(reactRoot);
} else {
reactContext
.getCatalystInstance()
.getJSModule(AppRegistry.class)
.unmountApplicationComponentAtRootTag(reactRoot.getRootViewTag());
}
clearReactRoot(reactRoot);
}
@ThreadConfined(UI)
@@ -671,9 +671,6 @@ public class NativeViewHierarchyManager {
View rootView = mTagsToViews.get(rootViewTag);
dropView(rootView);
mRootTags.delete(rootViewTag);
if (rootView != null) {
rootView.setId(View.NO_ID);
}
}
/**