0

I'm trying to remove a item from the Navigation Drawer. I got that solution but the problem when i open drawer after my labels there is a long blank space and it is scrollable.

here my code

       <Drawer.Screen name="abc" component={abc}
          options={{
                title: null,
                drawerIcon: () => null,
                drawerLabel: () => null,
              }}
        />

1 Answers1

0

use contentContainerStyle inside <DrawerContentScrollView>

set drawer height constant will fix this problem

here is the code:-

<DrawerContentScrollView {...props}contentContainerStyle={{height:hp('80%')}}>
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103