DEV Community

React Navigation Fix header height in iOS

Subramanya Chakravarthy on February 20, 2020

Have you ever faced large header height for iphones?? Like this one Well then you can fix this easily with one line of code In your navigator...
Collapse
 
drmas profile image
Mohamed Shaban

This usually happen because of embedding SafeArea in top of the navigation container, which results in double padding, although what you mentioned is a fix, may be the better one will be to make sure you don't have double SafeAreas

Collapse
 
chakrihacker profile image
Subramanya Chakravarthy

I agree whatever you said is a better solution, but I am too #lazy or didn't want to refactor my #workplace app when I wrote this article, so πŸ€·πŸ»β€β™‚οΈ

Thanks for pointing it out