gnestor / react-native-statusbar-alert

A status bar alert (e.g. in-call, recording, navigating) for React Native
230 stars 30 forks source link

Wrong spacing in combination with ReactNavigation #23

Open Jpunt opened 6 years ago

Jpunt commented 6 years ago

When the StatusBarAlert pushes down a StackNavigator of ReactNavigation, it also pushes down the spacing inside the header (meant for the statusbar). Is there any way to fix this?

screen shot 2018-02-01 at 08 55 11
bluenex commented 5 years ago

Almost a year late, still the same. I had to render null and the component conditionally instead of using visible prop.

bakystefan commented 5 years ago

const StackNav = createStackNavigator({ Main }, { navigationOptions: { headerForceInset: { top: 'never' }, } }); You can hide extra height on stackNavigator.