ReactFix
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • React
  • React Native
  • Programming
  • Object Oriented Programming

Thursday, November 3, 2022

[FIXED] How avoid Screen name from Drawer react native navigation drawer without clickable button

 November 03, 2022     android, ios, react-native, react-native-drawer, scrollview   

Issue

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,
              }}
        />

Solution

use contentContainerStyle inside <DrawerContentScrollView>

set drawer height constant will fix this problem

here is the code:-

<DrawerContentScrollView {...props}contentContainerStyle={{height:hp('80%')}}>


Answered By - Anshif yaseen
Answer Checked By - - Candace Johnson (ReactFix Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Post Older Post Home

Featured Post

Is Learning React Difficult?

React is difficult to learn, no ifs and buts. React isn't inherently difficult to learn. It's a framework that's different from ...

Total Pageviews

Copyright © ReactFix