This repository was archived by the owner on Mar 17, 2025. It is now read-only.
What is the best way to show the back button of Stacks within a nested Drawer->Tabs->Stack setup? #952
Unanswered
aholsteinson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently have the following setup in my app:
The root layout file is setup like this:
And the stack layouts within (tabs) have a similar setup:
The (auth) part is working as intended as it is meant to have the header hidden. But with the (drawer) I currently have the header of the drawer in the root hidden but am showing the header for the (tabs) which has buttons for toggling the drawer menu on the left and the profile and cart buttons on the right. The blog and store stack layouts have the headerShown set to false for every route.
How can I set it up so that the tab header with the toggle drawer button (and the profile and cart buttons) is shown when I am at the root of the blog or store stack but then show the back button of the stack when the user navigates to a detail or products view?
I know I can hide the header conditionally based on the route but it doesn't seems optimal and I am not sure how I would go about conditioning each of the various stacks inside (tabs), there are many more I am not showing here.
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions