Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/libs/Navigation/helpers/linkTo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ function shouldChangeToMatchingFullScreen(
lastFullScreenRoute: NavigationPartialRoute,
) {
if (matchingFullScreenRoute.name !== lastFullScreenRoute.name) {
// HOME has no RHP children (HOME_TO_RHP maps to []).
// Pushing another fullscreen under HOME causes Android to trim HOME
// from the render tree, reversing the back animation direction.
if (lastFullScreenRoute.name === SCREENS.HOME) {
return false;
}
return true;
}

Expand Down
Loading