mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 08:20:38 +08:00
Implement remove root view operations
Summary: This diff implements the removal of react root view inside fabric cxx implementation Reviewed By: shergin Differential Revision: D8939942 fbshipit-source-id: 69835b55c80e2970d65220d947489bc1af4b125d
This commit is contained in:
committed by
Facebook Github Bot
parent
596f17efda
commit
f9c86f05e9
@@ -12,6 +12,11 @@ public interface UIManager extends JSIModule, PerformanceCounter {
|
||||
*/
|
||||
<T extends SizeMonitoringFrameLayout & MeasureSpecProvider> int addRootView(final T rootView);
|
||||
|
||||
/**
|
||||
* Unregisters a new root view.
|
||||
*/
|
||||
void removeRootView(int reactRootTag);
|
||||
|
||||
/**
|
||||
* Updates the layout specs of the RootShadowNode based on the Measure specs received by
|
||||
* parameters.
|
||||
|
||||
@@ -547,6 +547,7 @@ public class FabricUIManager implements UIManager, JSHandler, FabricBinder {
|
||||
}
|
||||
|
||||
public void removeRootView(int rootTag) {
|
||||
mUIViewOperationQueue.enqueueRemoveRootView(rootTag);
|
||||
mRootShadowNodeRegistry.removeNode(rootTag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user