Navigation components
Choose a navigator, register screens, and configure transitions.
Import NavigationContainer, SharedElement, and the navigator factories from react-nitro-navigation. Stack and Tab below are the objects returned by createStackNavigator() and createBottomTabNavigator().
| Component | Use it to |
|---|---|
| NavigationContainer | own the navigation state for an app's screen tree |
| Stack.Navigator | present routes on a native navigation stack |
| Stack.Screen | register a route and configure its native stack screen |
| Stack.Group | apply shared options to a set of stack screens |
| Tab.Navigator | switch between top-level destinations with a native bottom tab bar |
| Tab.Screen | register a tab and configure its title, icon, badge, and first render |
| Tab.Group | apply shared options to a set of tab screens |
| SharedElement | connect one native view across two stack screens for a transition |