Skip to main content

All Questions

0 votes
0 answers
84 views

React Native Error: Cannot read property 'openDrawer' of undefined

I am implementing a react native project in which I have to add bottomtab navigation as well as right and left side drawer navigation all the screens. I have successfully implemented the tab ...
abcd's user avatar
  • 11
1 vote
1 answer
241 views

Not able to use the right side drawer navigation in react native

So I am new to react native and have been trying to implement drawer navigators. The issue I am facing is that when I click on the icon on the right side I want the right side drawer to open but it ...
abcd's user avatar
  • 11
1 vote
1 answer
76 views

How to add Logout Functionality in React Native DrawerNavigation

I have Created a Drawer on my Profile page ( its one of the three in bottom TabNavigator of my App). I am trying to add a logout item in the Drawer. I am able to add an item (maybe wrong way) but ...
Ashish Kumar's user avatar
1 vote
0 answers
115 views

Drawer navigation onclick event not working

Once I open the drawer the navigation when clicking isn't working in certain devices and the event in other devices works but not always. import {StyleSheet} from "react-native"; import { ...
Jono's user avatar
  • 79
1 vote
1 answer
575 views

drawer navigation is giving error in react native

I added stack and bottom navigator in my app, and it is running correctly. But if I add drawer navigation then I am getting error Below I have added my files App.tsx: import {NavigationContainer} from ...
pratteek shaurya's user avatar
0 votes
0 answers
721 views

how to implement sub menus in Drawer Navigation in React Native?

When user press on parent item listed in drawer, (if it have child items) then there child items expand and when user press on child items it navigate to the screens.
ankit srivastava's user avatar
1 vote
1 answer
413 views

Remove icon from tab navigator that nested in drawer navigator

I make drawer.navigator that nested tab.navigator, Then show an icon that I didn't add to the code! and tried to remove it but couldn't...!! Does anybody have an idea? <NavigationContainer> ...
Majid Moradi's user avatar
0 votes
0 answers
1k views

Is it possible to have a left and right drawer menu in the same header using React Native Navigation 6?

I've found various examples using version 5 like this https://snack.expo.dev/Bkd0MKqb7 but can't seem to get this working using version 6. Here's a snippet of my code showing the main drawer menu ...
Peter's user avatar
  • 1
7 votes
5 answers
13k views

How to set react-native drawer header icon ('Hamburger') to the right side?

I set the drawer right-side, but the hamburger icon, in the screen header, stays default left side, Is there any property to pass through to change position to the right? I know it should be done with ...
Giorgi Digmelashvili's user avatar
3 votes
1 answer
1k views

react native navigation drawer : Drawer not closing when pressing an overlay

I have tried many suggestions from https://github.com/react-navigation/react-navigation/issues/5370 but none of them. Drawer is closing fine in android platform. This is only happening in iOS. I am ...
newdeveloper's user avatar
  • 1,451
0 votes
1 answer
2k views

How to open drawer in react native using navigation.openDrawer()

I wanted to create a burger icon to open drawer but has been unable to do so. I have included the icon button on the right of my header. Whenever I click it to open the drawer, it shows the error of ...
Onkar Mehra's user avatar
1 vote
0 answers
1k views

How to nest stack navigator, bottom tab navigator and drawer navigator?

I have been trying to nest stack navigator inside bottom tab navigator and which has been nested into drawer navigator. In terms of nesting, bottom tab navigator is at the top, then bottom tab ...
Onkar Mehra's user avatar
1 vote
2 answers
7k views

How to resolve the error A navigator can only contain 'Screen' components as its direct children (found ';')?

I have been trying to nest drawer navigator, bottom tab navigator and stack navigator. I am getting two same errors: A navigator can only contain 'Screen' components as its direct children (found ';')...
Onkar Mehra's user avatar
0 votes
1 answer
342 views

nesting of BottomtabNavigator and DrawerNavigator

I have been trying to nest BottomTabNavigator and DrawerNavigator but has been unable to do so. I have written the code for drawer navigator in my App.js and has imported components Passenger from ...
Onkar Mehra's user avatar
0 votes
1 answer
459 views

React Native: How to include multiple stackNavigators into a drawerNavigator in react native v5 (not v4)

I'm new to react native and was trying to include two stackNavigators into a drawerNavigator in react native v5. My Navigator code is also given below. When I add both stackNavigator into ...
Shaswata Mitra's user avatar

15 30 50 per page