Build: Nested Navigators Example
This screen demonstrates how to use nested navigators in a React Native app using React Navigation. The main navigator is a bottom tab navigator with two tabs. The first tab contains a stack navigator with two screens. The second tab is a simple screen.
Target UI
┌─────────────────────────────┐ │ Bottom Tabs: [Home] [Settings] │ ├─────────────────────────────┤ │ Home Stack Navigator │ │ ┌───────────────┐ │ │ │ Home Screen │ │ │ │ [Go to Details] │ │ └───────────────┘ │ └─────────────────────────────┘
Use React Navigation with a bottom tab navigator as the main navigator.
The first tab should have a stack navigator with two screens: Home and Details.
The Home screen should have a button to navigate to the Details screen.
The second tab should be a simple Settings screen.
Each screen should display a title and a simple message.
Use functional components and hooks.