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
On the initial screen tap the search input in the header
While focus is still on the search input navigate to the next screen (in a real world example this could be a search result)
Navigate back to the previous screen
Notice that for a moment the header occupies no height, until focus returns to the search input, after which the contents of the screen jump down.
This happens regardless of the values of hideWhenScrolling and hideNavigationBar.
Navigating without searching does not have the same effect, so it seems to be directly related to using the header's search function.
RPReplay_Final1710151951.mp4
Expected behavior
The header should occupy its correct height while the navigation transition occurs, so that when the transition ends there is no janky content position jump.
bakkerjoeri
changed the title
Height of header with active search input temporarily ignored when navigating back on iOS
Height of header with active search input seems to be ignored during back navigation transition on iOS
Mar 11, 2024
Current behavior
Steps to reproduce using this example https://snack.expo.dev/@joeri.cineville.nl/search-in-react-navigation?platform=ios
Notice that for a moment the header occupies no height, until focus returns to the search input, after which the contents of the screen jump down.
This happens regardless of the values of
hideWhenScrolling
andhideNavigationBar
.Navigating without searching does not have the same effect, so it seems to be directly related to using the header's search function.
RPReplay_Final1710151951.mp4
Expected behavior
The header should occupy its correct height while the navigation transition occurs, so that when the transition ends there is no janky content position jump.
Reproduction
https://snack.expo.dev/@joeri.cineville.nl/search-in-react-navigation?platform=ios
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: