Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove header from stack navigator in drawer navigator in react version 6.x

this is my stack navigator enter image description here

this is my drawer navigator enter image description here

the problem is my Drawer navigtor header in stack navigator screen 2 - [name='Details',component='Anote'],
I want to remove the drawer navigator from the below picture [ie. one with the title=[Notes Maker]]

enter image description here

like image 684
Ashish Saini Avatar asked Oct 20 '25 14:10

Ashish Saini


1 Answers

  • if you remove header of stack.Navigator use the screenOptions attribute and make false the headerShown :

    screenOptions={{headerShown:false}}
    
  • but is you want to remove the header of Drawer.Navigator use the options attribute and make false the headerShown:

    options={{headerShown: false}}
    
like image 111
AS Irfani Avatar answered Oct 23 '25 05:10

AS Irfani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!