mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
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));
|
tagsToDelete));
|
||||||
}
|
}
|
||||||
|
|
||||||
View viewToRemove = viewToManage.getChildAt(indexToRemove);
|
View viewToRemove = viewManager.getChildAt(viewToManage, indexToRemove);
|
||||||
|
|
||||||
if (mLayoutAnimator.shouldAnimateLayout(viewToRemove) &&
|
if (mLayoutAnimator.shouldAnimateLayout(viewToRemove) &&
|
||||||
arrayContains(tagsToDelete, viewToRemove.getId())) {
|
arrayContains(tagsToDelete, viewToRemove.getId())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user