This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Using tabs navigator, require a working back button and page transitions #489
Unanswered
gameveloster
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
not sure i understood but from what i get, what you want is : so your tab will only get 2 icon /screens (Homne /Setting) and when you go to the setting tab, it will get his own Stack with the User screen inside, which would trigger the animation of the Settings Stack |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am still quite confused with using
expo-routerand will appreciate some guidance.In my Expo app using
expo-router, there should be 3 screens:HomeSettingsUserand 2 tabs
HomeSettingsThis is my current file structure
I can configure the tab navigator in
_layout.jsto show only the 2 required tabs:HomeandSettings.There is a button in
Settingsscreen that brings you to theUserscreen with arouter.push('/user').Problems:
Userscreen slides in from the right side of the screenUserscreen that brings u back to the previous screenSettings. Should the back button be created for you by default?Questions:
How can you configure the navigators/layouts to achieve this?
I feel that the current layout might not be sensible, since all 3 files are in the same directory level, but logically the
Userscreen is nested inside theSettingsscreen, so its file path should be something likeapp/(main)/settings/user.js, but I am not sure.Thank you
layout.jsBeta Was this translation helpful? Give feedback.
All reactions