search

Home  >  Q&A  >  body text

How to change the style of @react-navigation/drawer DrawerItemList

I'm using @react-navigation/drawer.

And<DrawerContentScrollView>The internal styling is very annoying

I have a demo here (please run it on andorid, there is no paddingTop on the web)

question:

There is a style inside the view in DrawerContentScrollView:

{
  "paddingTop": 34.18181800842285,
  "paddingStart": 0,
  "paddingEnd": 0
}

It would be nice if I didn't customize a title at the top. It seems that the StatusBar is padding. I don't know where to fix it. I want to turn it off or change paddingTop: 0.

Can anyone solve this problem?

P粉381463780P粉381463780328 days ago474

reply all(1)I'll reply

  • P粉734486718

    P粉7344867182024-02-04 00:25:09

    AddcontentContainerStyle={{paddingTop: 0}} Enter <DrawerContentScrollView>

    
      
    

    reply
    0
  • Cancelreply