Replies: 1 comment
-
Fixed by removing child layouts. |
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
-
Hello,
I wanted to see if I'm incorrectly using _layout or if there is an active issue in expo-router related to routing to the parent route from a child route.
Behavior:
Let's say I'm currently on the
"/user/settings/account-settings"
screen, and I click on the bottom nav bar to route back to the"/user"
route. It seems that either nothing is happening when i click on the icon which shouldpush("/user"
. However, if I route to another route, for whichsegment[0] !== "user"
, I am successfully able to successfully route away from"/user/settings/account-settings"
and back to"/user"
.So to reiterate:
Currently on "/user/settings/account-settings"
=> Click user icon button which should perform router.push("/user"), but fail to route back to segment[0]
=> Click notifications icon and successfully route to "/notifications"
=> Click user icon again and successfully route to "/user"
I've provided an example of what my project looks like below.
Folder Structure:
All layout files contain the following code:
Dummy nav:
All screens also contain a
Link
which is used as follows:Appreciate any time and consideration! Provided an example of what code looks like below.
Beta Was this translation helpful? Give feedback.
All reactions