I'm using drawer navigator to create a menu by react native I want to remove the header and keep just the bar icon so I tried to turn the backgroundColor into transparent but it doesnt work.
the code is bellow:
<Drawer.Navigator
drawerContent={props => <DrawerContent {...props} />}>
<Drawer.Screen
name="Home"
component={HomeScreen}
options={{
headerStyle: {
backgroundColor: 'transparent',
},
}}
/>

I solved this by adding screenOption to the Drawer.navigator
screenOptions={{
headerShown: true,
headerTransparent:true
}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With