mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Track animations and flush them"
Summary: Original commit changeset: b594d0e6e9b6 D20319824 introduced a problem in LayoutAnimations, which makes surfaced as the problem in T63911344. This diff reverts D20319824. Changelog: [Internal] Reviewed By: lunaleaps Differential Revision: D20541918 fbshipit-source-id: ff72b839f57d39051122920a38b2632cbb5ec362
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c64bd5739
commit
950826f6b5
-3
@@ -366,8 +366,6 @@ public class NativeViewHierarchyManager {
|
||||
UiThreadUtil.assertOnUiThread();
|
||||
|
||||
final Set<Integer> pendingDeletionTags = new HashSet<>();
|
||||
mLayoutAnimator.cancelAnimationsForViewTag(tag);
|
||||
|
||||
final ViewGroup viewToManage = (ViewGroup) mTagsToViews.get(tag);
|
||||
final ViewGroupManager viewManager = (ViewGroupManager) resolveViewManager(tag);
|
||||
if (viewToManage == null) {
|
||||
@@ -451,7 +449,6 @@ public class NativeViewHierarchyManager {
|
||||
if (mLayoutAnimationEnabled && mLayoutAnimator.shouldAnimateLayout(viewToDestroy)) {
|
||||
pendingDeletionTags.add(tagToDelete);
|
||||
mLayoutAnimator.deleteView(
|
||||
tag,
|
||||
viewToDestroy,
|
||||
new LayoutAnimationListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user