It seems like except backgroundColor
nothing else has an effect in headerStyle
.
const defaultNavOptions = {
headerBackTitle: 'Back',
headerStyle: {
backgroundColor: colors.secondary,
height: 100,
},
Then I'm passing the options:
<Stack.Navigator
initialRouteName={'Home'}
screenOptions={({ navigation }) => ({
...defaultNavOptions,
headerLeft: () => (
<Icon
name="menu-open"
size={30}
color={colors.primary}
onPress={() => navigation.openDrawer()}
/>
),
})}
>
Am I doing something wrong?
Is there a way to set the height for the header?
Thanks in advance.