You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a header navigation with a height minimization animation during page transitions.
Everything works well, but I noticed an issue: during the transition to the next screen, the container height of the new screen doesn’t adjust along with the header height change. This causes noticeable jumps on the screen.
In other words, native screen layout measurements during the transition are frozen, which causes jumps in the end.
I tried with @react-navigation/stack but still the same result.
To make it easier to observe, I set the background color to red in the navigator theme.
Please check the attached video for reference.
Untitledasdfasdf.mov
Expected behavior
The screen container height should be increased according to the header height decrease.
In other word screen should be in sync with header height modification.
I dropped a Snack link, so that you can check the structure that I have for the screen.
beqramo
changed the title
Animating Header during the navigation break screen.
Animating Header during the navigation breaks the screen.
Nov 20, 2024
beqramo
changed the title
Animating Header during the navigation breaks the screen.
Animating Header During Navigation Causes Screen Breaks
Nov 20, 2024
beqramo
changed the title
Animating Header During Navigation Causes Screen Breaks
Animating Header During Navigation Causes Screen Breaks/Jumps
Nov 20, 2024
Current behavior
Hi,
I'm trying to create a header navigation with a height minimization animation during page transitions.
Everything works well, but I noticed an issue: during the transition to the next screen, the container height of the new screen doesn’t adjust along with the header height change. This causes noticeable jumps on the screen.
In other words, native screen layout measurements during the transition are frozen, which causes jumps in the end.
I tried with @react-navigation/stack but still the same result.
To make it easier to observe, I set the background color to red in the navigator theme.
Please check the attached video for reference.
Untitledasdfasdf.mov
Expected behavior
The screen container height should be increased according to the header height decrease.
In other word screen should be in sync with header height modification.
I dropped a Snack link, so that you can check the structure that I have for the screen.
Reproduction
https://snack.expo.dev/@beqram0/blessed-yellow-turkish-delight
Platform
Packages
Environment
I tried to update react-navigation. reanimated, gesture-handler but still the same result.
The text was updated successfully, but these errors were encountered: