How to change the style of @react-navigation/drawer DrawerItemList
P粉381463780
P粉381463780 2024-02-03 18:57:47
0
1
470

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粉381463780
P粉381463780

reply all(1)
P粉734486718

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


  
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template