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:
Ahmed El-Helw 2016-03-04 16:35:58 -08:00
parent 1a4d40df6c
commit 272d99ed56
1 changed files with 0 additions and 7 deletions

View File

@ -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();
}