How to measure header height?
See original GitHub issueI implement padding to KeyboardAvoidingView. In react-navigation I could get header height through useHeaderHeight hook.
import { useHeaderHeight } from '@react-navigation/stack';
// ...
const headerHeight = useHeaderHeight();
Could you mind share ideas to measure that header height?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Rule of Thumb for Sizing Headers - JLC Online
It went like this: Measure the span in feet and add 2 to that number. The sum will be the height of your...
Read more >How to Size a Header in My House - Hunker
Figure out the type of header you'll need. If you are creating an opening no wider than 4 feet, for a door or...
Read more >How to Determine Header Size in Construction - eHow
Look at a beam matrix, if you have engineering calculations indicating how much strength you need for a specific header. Custom lumber and...
Read more >How to calculate the height of a header in <body> tag?
If you don't have time to learn JavaScript the easiest the thing to do is to give the header a fixed height. Than...
Read more >How to measure header size? - CorvetteForum
How to measure header size ? ... I hate to sound obvious, but measure the diameter of the pipe. ... Find a straight...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not working with headerLargeTitle, and extraOffset working with tabs or others components with you add
I think the best way to do it is to use
react-native-safe-area-context
. On iOS, it should always besafeArea.top
+ 96 for large header andsafeArea.top
+ 44 for small header. Does it solve your issue?