Fix removal of ReactShadowNode

Reviewed By: achen1

Differential Revision: D7323294

fbshipit-source-id: 411aa1bcd93cc4f9df78f64ceb0c0d8c127bc3b0
This commit is contained in:
David Vacca 2018-03-19 18:21:45 -07:00 committed by Facebook Github Bot
parent cc3d45d2e9
commit 5347ecfd29
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ public class FabricReconciler {
indicesToRemove[indicesToRemoveIndex++] = j;
if (!addedTags.contains(nodeToRemove.getReactTag())) {
tagsToDelete.add(nodeToRemove.getReactTag());
// TODO: T26729293 since we are not cloning ReactShadowNode's we need to "manually" remove
// from the ReactShadowTree when one of the nodes is deleted in JS.
nodeToRemove.getParent().removeChildAt(j);
}
}