Navigation Stuck

jack_george_08f843b25bb83

Jack George

Posted on August 4, 2024

Navigation Stuck

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

💖 💪 🙅 🚩
jack_george_08f843b25bb83
Jack George

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