Skip to content

Commit 6383c65

Browse files
fix: prevent wrong back animation when navigating from Home to RHP
1 parent 425edfe commit 6383c65

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/libs/Navigation/helpers/linkTo

src/libs/Navigation/helpers/linkTo/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ function shouldChangeToMatchingFullScreen(
9494
lastFullScreenRoute: NavigationPartialRoute,
9595
) {
9696
if (matchingFullScreenRoute.name !== lastFullScreenRoute.name) {
97+
// HOME has no RHP children (HOME_TO_RHP maps to []).
98+
// Pushing another fullscreen under HOME causes Android to trim HOME
99+
// from the render tree, reversing the back animation direction.
100+
if (lastFullScreenRoute.name === SCREENS.HOME) {
101+
return false;
102+
}
97103
return true;
98104
}
99105

0 commit comments

Comments
 (0)