Navigation Stuck
Jack George
Posted on August 4, 2024
I use Expo with file-based routing here is an example :
note: drawer, home and book are on the same level cause I wanna to not access the drawer from anywhere inside the home or book
(drawer) (have the drawer and drawer screens)
////_layout
////(tabs)
////////_layout (have the tabs and tabs screens)
////////home.tsx
////////book.tsx
home
////////_layout (have stack navigator for all inside home)
////////example1Folder
////////////index.tsx (the list)
////////////[id].tsx (the details)
////////example2Folder
////////////index.tsx (the list)
////////////[id].tsx (the details)
book
////_layout (have stack navigator for all inside home)
////example2Folder
//////////index.tsx (the list)
//////////[id].tsx (the details)
the problem as you see is that I have the example2Folder inside the home and book so my question is how to handle this case in a better way So example2Folder is shared between home and book and maybe others what should I do in that case
I need help on this thank all
Posted on August 4, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
March 8, 2024
August 9, 2023
August 7, 2023