mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
341b29da71
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 https://github.com/facebook/react-native/pull/8983 Differential Revision: D3668637 fbshipit-source-id: 777a0c53e8fd1caa35ce4980ca3118adcf83b62d