mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-04 22:56:32 +08:00
Delay dropping root views until the drop views step of StateBuilder.
Summary: @public Make UIOperation public so that custom implementations can expose instances of it. Reviewed By: ahmedre Differential Revision: D3618197
This commit is contained in:
committed by
Ahmed El-Helw
parent
45e626a887
commit
1d034cf91d
@@ -140,7 +140,12 @@ import com.facebook.react.uimanager.ViewManagerRegistry;
|
||||
|
||||
/* package */ void dropViews(int[] viewsToDrop) {
|
||||
for (int viewToDrop : viewsToDrop) {
|
||||
dropView(resolveView(viewToDrop));
|
||||
if (viewToDrop > 0) {
|
||||
dropView(resolveView(viewToDrop));
|
||||
} else {
|
||||
// Root views are noted with a negative tag from StateBuilder.
|
||||
removeRootView(-viewToDrop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user