Create a <Drawer>
Layout with nested <Stack>
#715
Unanswered
Emperor-Koala
asked this question in
Q&A
Replies: 1 comment 3 replies
-
hope this helps |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a
<Drawer>
layout, where one of the routes has a nested<Stack>
. The main issue I'm encountering is a sort of "conflict" with the headers. I want the root page of the<Stack>
to include the "open drawer" button in the header, but for any sub-pages of the Stack to just have a back button.Unfortunately right now if I want to be able to go back up through the stack, I have to show the headers for both navigators, which obviously doesn't look that great.
I tried defining the options on both
<Drawer.Screen />
and<Stack.Screen />
at the same time, but it just merged them and applied all the options to the Stack navigator. I also thought about usingnavigation.openDrawer()
, but typescript complains becauseopenDrawer()
doesn't exist on the baseuseNavigation()
.Has anyone managed to figure out how to accomplish something like this? Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions