Fix deletion layout animations to work with custom view managers

Summary: D3352450 didn't handle the case where removeClippedSubviews is on and the indices within the parent view don't match the indices JS is working on

Differential Revision: D3398675

fbshipit-source-id: 0a1b9cf41b02f71f6585db92474e4699b944d273
This commit is contained in:
Andy Street 2016-06-07 09:32:35 -07:00 committed by Facebook Github Bot 2
parent 4868948175
commit 49a5fe493e
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ public class NativeViewHierarchyManager {
tagsToDelete));
}
View viewToRemove = viewToManage.getChildAt(indexToRemove);
View viewToRemove = viewManager.getChildAt(viewToManage, indexToRemove);
if (mLayoutAnimator.shouldAnimateLayout(viewToRemove) &&
arrayContains(tagsToDelete, viewToRemove.getId())) {