Using tabs navigator, require a working back button and page transitions #489
Unanswered
gameveloster
asked this question in
Q&A
Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am still quite confused with using
expo-router
and will appreciate some guidance.In my Expo app using
expo-router
, there should be 3 screens:Home
Settings
User
and 2 tabs
Home
Settings
This is my current file structure
I can configure the tab navigator in
_layout.js
to show only the 2 required tabs:Home
andSettings
.There is a button in
Settings
screen that brings you to theUser
screen with arouter.push('/user')
.Problems:
User
screen slides in from the right side of the screenUser
screen 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
User
screen is nested inside theSettings
screen, so its file path should be something likeapp/(main)/settings/user.js
, but I am not sure.Thank you
layout.js
Beta Was this translation helpful? Give feedback.
All reactions