useHeaderHeight does not update after cancelling search #2611
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
See react-navigation/react-navigation#12331
Current behavior
useHeaderHeight() does not update its value when the search bar is closed
useHeaderHeightBug.mp4
Expected behavior
useHeaderHeight() should update to provide the adjusted height after the search bar is dismissed.
Steps to reproduce
Snack or a link to a repository
https://snack.expo.dev/@c2thehris/useheaderheight-with-searchbar-ios-bug
Screens version
4.4.0
React Native version
0.76
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: