mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 09:27:29 +08:00
Revert workaround for Nodes detach
Summary: This code reverts D3004541, since it fixes the symptom instead of the root cause. Root cause fix is in D3011191. Differential Revision: D3011291
This commit is contained in:
@@ -113,13 +113,6 @@ import com.facebook.react.uimanager.events.EventDispatcher;
|
||||
mOnLayoutEvents.clear();
|
||||
|
||||
if (!mViewsToDrop.isEmpty()) {
|
||||
for (int i = 0, mViewsToDropSize = mViewsToDrop.size(); i < mViewsToDropSize; i++) {
|
||||
// set parent tag to -1 to avoid trying to detach this view
|
||||
FlatShadowNode shadowNode = mViewsToDrop.get(i);
|
||||
if (shadowNode.mountsToView()) {
|
||||
shadowNode.setNativeParentTag(-1);
|
||||
}
|
||||
}
|
||||
mOperationsQueue.enqueueDropViews(collectViewTags(mViewsToDrop));
|
||||
mViewsToDrop.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user