I have added drawer navigation and I want to hide some menu from it. My code is given below
I have tried to hide title from menu but it only hide title text but it occupy space and its clickable I hust want to display none from the menu bar.
<Drawer.Navigator useLegacyImplementation screenOptions={{ drawerStyle: { backgroundColor: '#FFF', width: 240 } }}>
<Drawer.Screen name="SignIn" component={SignIn} options={{ headerShown: false,drawerLabel: () => null }}/>
<Drawer.Screen name="Dashboard" component={Dashboard} options={{ title: 'My home', headerStyle: { backgroundColor: '#28AAF9', }, headerShown: true, headerTitle:()=>null, headerTintColor: '#fff', headerTitleStyle: { fontWeight: 'bold', } }}/>
<Drawer.Screen name="Attendence" component={Attendence} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="LeaveApplyScreen" component={LeaveApplyScreen} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="Leaves" component={Leavelist} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="LeaveDetails" component={LeaveDetails} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="Report Submit" component={ReportSubmitScreen} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="Announcement" component={AnnouncementScreen} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="Tasks History" component={TaskHistoryScreen} options={{ headerShown: true,headerTitle:()=>null }}/>
<Drawer.Screen name="EventsScreen" component={EventsScreen} options={{ headerShown: true,headerTitle:()=>null }}/>
</Drawer.Navigator>