-
Hello, I'm working on setting up a My initial attempt was to add these stacks directly to the const tabs: TabType[] = [
{
name: "Home",
component: Home,
label: "Home",
header: false,
},
{
name: "AttendanceNavigator",
component: AttendanceNavigator,
label: "Attendance",
},
{
name: "Settings",
component: Settings,
label: "Settings",
},
]; how to handle this situation, based on your best practices? Should i create a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The best approach for me is to create the tab navigator as a screen inside the root stack screen, and then add all other screens to the root stack. This way, it's easy to navigate and makes your app simple and easy to maintain. I always find it challenging to use nested routes. |
Beta Was this translation helpful? Give feedback.
The best approach for me is to create the tab navigator as a screen inside the root stack screen, and then add all other screens to the root stack. This way, it's easy to navigate and makes your app simple and easy to maintain. I always find it challenging to use nested routes.