I'm making an app using react navigation-drawer for native, and I was wondering if it is possible to hide just the header title without hiding other things with for example
headerShown: false
CodePudding user response:
Yes, you can pass an empty string just like this
options={() => ({
headerTitle: "",
})}
CodePudding user response:
EDIT: I found the way to do it in options property of drawer screen you can set the headerTitle
to ''
<Drawer.Screen name="Home" component={Home} options={{title: 'Home', headerTitle:''}}/>
the title
is the name of the Screen shown in the drawer menu, and the headerTitle
is of course the one shown on the top of the screen, on the header