React Nitro

Tab.Navigator

Switch between top-level destinations with a native bottom tab bar.

App.tsx
<Tab.Navigator  initialRouteName="Notes">  <Tab.Screen name="Notes"    component={Notes} />  <Tab.Screen name="Places"    component={Places} /></Tab.Navigator>
Notes
Latest entryA morning at the mill
Use the bottom bar to switch between two top-level destinations.

Import createBottomTabNavigator from react-nitro-navigation. Create the navigator once at module scope and render its Navigator under a NavigationContainer.

import { createBottomTabNavigator } from 'react-nitro-navigation'
import { Text } from 'react-nitro-renderer'

const Tab = createBottomTabNavigator<{ Notes: undefined; Settings: undefined }>()

function Notes() {
  return <Text>My notes</Text>
}

function Settings() {
  return <Text>Settings</Text>
}

export function AppTabs() {
  return (
    <Tab.Navigator initialRouteName="Notes">
      <Tab.Screen name="Notes" component={Notes} />
      <Tab.Screen name="Settings" component={Settings} />
    </Tab.Navigator>
  )
}

Each registered screen gets a tab. Its contents mount when the user first opens it by default. A tab can itself render a stack so its detail screens have their own back navigation. Tab.Screen