Questions tagged [react-navigation-drawer]
395 questions
2
votes
2 answers
React-Native goBack() not navigating to previous screen
I’ve been struggling to get goBack() working inside a drawer navigator and I’m not even sure my whole approach here is correct. I want a side menu that functions independently from the main screens, as the side menu will only handle global…

Mick
- 77
- 8
2
votes
1 answer
Trigger function in main screen from drawer navigation React Native
I have a screen using tab navigator. inside the app have drawer navigator. inside drawer, have some option to choose using radio button like option A, B, C.
when I choose one option, supposedly it will be updated on main screen. but the problem is,…

Shah Amir
- 33
- 3
2
votes
0 answers
Attempt at centring drawer items makes them have zero text
https://snack.expo.dev/5spvLQAsL
In the above snack, I have made a simple edit on line 29 from the default:
drawerStyle: {
flex:1,
alignItems: "center",
justifyContent: "center"
},
Yet, this somehow causes the text to disappear. How can I…

peanutbatterballs
- 153
- 9
2
votes
0 answers
React Native aws-amplify Auth.signIn throwing NotAuthorizedException on android only when used with react native reanimated
I'm using
aws-amplify: 4.3.11,
aws-amplify-react-native: 6.0.4.
When I try to sign in and enter username and password, it first freezes the screen and hangs the sign-in button, then works and throws an exception
"Incorrect username or password".…

Zulkifle Maroof
- 21
- 1
2
votes
2 answers
getOptions for react navigation
React navigation has a well documented setOptions. https://reactnavigation.org/docs/navigation-prop
However I can't seem to find any method to retrieve the current options for the active navigator. Am I missing something? Or is there a reason why it…

Tony
- 36,591
- 10
- 48
- 83
2
votes
2 answers
Is there a way to hide header title for react-navigation-drawer component
I'm making an app using react navigation-drawer for native, and I was wondering if it is possible to hide just the header title without hiding other things with for example
headerShown: false

m3k_1
- 383
- 4
- 15
2
votes
2 answers
when I'm using DrawerItemList the app crashes
I'm trying to create a drawer menu using react navigation. I want to use a custom DrawerContent, and when I'm using the the app crashes with this error: "undefined is not an object (evaluating 'state.routes')". If I comment this specific line the…

Gaabreu
- 23
- 3
2
votes
2 answers
React native drawer navigator not opening
I'm building a react native app and using react navigation v6 library. I've built a react navigator that works fine for the most part, but I'm facing this bug when navigating to a certain page.
I have a stack navigator:
…

German Cocca
- 669
- 1
- 9
- 17
2
votes
0 answers
error 'undefined is not an object' using @react-navigation/drawer (checked docs and issues)
I'm not sure what the issue is, but I've looked at the docs and it's done correctly, and I've even looked at issues on Github and SO and nobody seems to be having the exact same issue. Here is what I'm using:
React Native .66.1
React Navigation…

Joel Hager
- 2,990
- 3
- 15
- 44
2
votes
0 answers
react-navigation [v6] drawer and stack nesting issues
Like the most common use case, I want to have a drawer in my react-native application where, from all screens header I can open/close the drawer, navigate to them. Also, each screen has an option (button, card,...) that on press should navigate to…

Amir-Mousavi
- 4,273
- 12
- 70
- 123
2
votes
1 answer
React Native Navigation Drawer Problem ('navigation.openDrawer' is undefined))
Hi guys i'm new to react native. I want to use drawer navigation with menu button. But actually i don't understand react navigation very well probably. When i press button for openDrawer i'm getting error like this;
TypeError: navigation.openDrawer…

Umut Kurt
- 106
- 1
- 7
2
votes
0 answers
Error: "Another navigator is already registered for this container. You likely have multiple navigators under a single Navigation Container"
I am trying to add a second drawer to my current navigator, but I am getting an error that states that I am already using another navigator in this stack. This drawer navigator will be on the opposite side of the existing one and open to the right…

shyguy189540
- 244
- 1
- 9
2
votes
1 answer
How to use props.navigation.closeDrawer() inside a CustomDrawerContent?(React Native)("@react-navigation/drawer": "^5.11.4")
My code for the current scenario is as follows:
function DrawerNavigation(props) {
return (
…

Satyam
- 567
- 1
- 6
- 20
2
votes
0 answers
React Native - Open Drawer not working when using Navigation.push()
I am working on a React Native Expo app where I have both Stack Navigation and Drawer Navigation.
I have nested Drawer Navigator inside my Stack Navigator in app.js. When I click on Drawer hamburger menu, it opens the drawer from the right hand…

Saimuga
- 255
- 1
- 5
- 16
2
votes
0 answers
How to remove ripple effect from React Navigation Drawer Item?
When I press drawer Item, I see 2 colors
Item button background color (in the center with ripple effect)
Active background color of the item.
On pressing the item, the ripple effect appears and then screen is loaded. I used InteractionManager but…

Piyush
- 3,015
- 3
- 18
- 31