mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
committed by
Riccardo Cipolleschi
parent
a8539190fe
commit
db600b2e9e
+2
-2
@@ -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)
|
||||
|
||||
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user