There is a way to get the current header height from react-navigation/native-stack
with headerLargeTitle
set? I've tried with useHeaderHeight from react-navigation/elements
but this always returns 64, looks like is the height from default headers + status bar height.
Asked
Active
Viewed 277 times
0

Cristian Flórez
- 2,277
- 5
- 29
- 51
-
what are you trying to achieve ? `height = NavBarHeight - StatusBarHeight` or only `StatusBarHeight`? To get `StatusBarHeight` you can use `StatusBar.currentHeight`. https://stackoverflow.com/questions/35436643/how-to-find-height-of-status-bar-in-android-through-react-native – Kailash Sep 29 '22 at 06:46
-
I want to get the header height with `headerLargeTtile` set... I update my question with a reference of a header with large title – Cristian Flórez Sep 29 '22 at 07:10