useReanimatedHeaderHeight()
hook returns the wrong header height on initial screen render when used with largeTitle and no additional headers
#2628
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
Noticing the following issue In iOS (I don't support Android so haven't checked there).
My nav structure looks like this:
Inside the Discover component I am doing this:
this logs the following:
the correct value is actually 143 but for some reason it becomes 96 towards the end. The result is the sticky header which I am using this logic for is cut off and sitting above where it should be. Once I start to scroll everything is good, the correct value comes back from the hook and the logic to sticky the header works fine:
Could you please fix whatever bug is causing the wrong height to be returned towards the end during the initial screen render?
Steps to reproduce
...
Snack or a link to a repository
https://snack.expo.dev/404
Screens version
4.4.0
React Native version
0.76.6
Platforms
iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
iPhone 13 pro max
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: