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:
parent
4868948175
commit
49a5fe493e
|
@ -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())) {
|
||||
|
|
Loading…
Reference in New Issue