Revert "fix-next(android): restore fade animation for simulated nav (#6463)" (#6473)

This reverts commit 448936d6e6bf03c79e17648e8912a4f0eea0b43f.
This commit is contained in:
Manol Donev
2018-10-29 19:43:34 +02:00
committed by GitHub
parent 7625d6cb21
commit 95c4ec5a96

View File

@ -364,7 +364,7 @@ export class Frame extends FrameBase {
const newFragmentTag = `fragment${fragmentId}[${navDepth}]`;
const newFragment = this.createFragment(newEntry, newFragmentTag);
const transaction = manager.beginTransaction();
const animated = this._getIsAnimatedNavigation(newEntry.entry);
const animated = currentEntry ? this._getIsAnimatedNavigation(newEntry.entry) : false;
// NOTE: Don't use transition for the initial navigation (same as on iOS)
// On API 21+ transition won't be triggered unless there was at least one
// layout pass so we will wait forever for transitionCompleted handler...