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:
parent
1a4d40df6c
commit
272d99ed56
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue