Please sign in to comment.
Render NavigationHeader correctly with hidden status bar
Summary: Currently, the NavigationExperimental `Header` only renders correctly on iOS when the system status bar is visible. There are legitimate reasons to hide the status bar, especially when displaying in landscape. This PR adds a `statusBarHeight` prop to the header, which defaults to 20 on iOS and 0 (no status bar) on Android. Changing this value causes the extra space at the top of the header reserved for the status bar to change. I've tested this change in my own app on iOS with `statusBarHeight` set to 0, 20, and `undefined`, and ensured that it works correctly. Closes #8983 Differential Revision: D3668637 fbshipit-source-id: 777a0c53e8fd1caa35ce4980ca3118adcf83b62d
- Loading branch information...
Showing with 18 additions and 6 deletions.