Is my folder/file structure set up correctly? #914
-
The screen what I want is that has tabs & drawers together. and they need be managed in Stack. folder (stack) : _layou.tsx is only for return
Or could I make only one _layout.tsx with nested code like below? // app/_layout.tsx
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's no correct way to do it - you need to design it in a way that works for you app. Because everyone is going to have a slightly different design. E.g: Will you ever have a screen without tabs, but you still want the drawer present? Ok well they should be separate groups then. I personally always keep they separated, because I logically think of them as separated. |
Beta Was this translation helpful? Give feedback.
There's no correct way to do it - you need to design it in a way that works for you app. Because everyone is going to have a slightly different design. E.g: Will you ever have a screen without tabs, but you still want the drawer present? Ok well they should be separate groups then.
I personally always keep they separated, because I logically think of them as separated.