/** * If you are not familiar with React Navigation, refer to the "Fundamentals" guide: * https://reactnavigation.org/docs/getting-started * */ import { FontAwesome } from '@expo/vector-icons'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer, DefaultTheme, DarkTheme } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import * as React from 'react'; import { ColorSchemeName, Pressable } from 'react-native'; import Colors from '../constants/Colors'; import useColorScheme from '../hooks/useColorScheme'; import ModalScreen from '../screens/ModalScreen'; import NotFoundScreen from '../screens/NotFoundScreen'; import TabOneScreen from '../screens/TabOneScreen'; import TabTwoScreen from '../screens/TabTwoScreen'; import { RootStackParamList, RootTabParamList, RootTabScreenProps } from '../types'; import LinkingConfiguration from './LinkingConfiguration'; export default function Navigation({ colorScheme }: { colorScheme: ColorSchemeName }) { return ( ); } /** * A root stack navigator is often used for displaying modals on top of all other content. * https://reactnavigation.org/docs/modal */ const Stack = createNativeStackNavigator(); function RootNavigator() { return ( ); } /** * A bottom tab navigator displays tab buttons on the bottom of the display to switch screens. * https://reactnavigation.org/docs/bottom-tab-navigator */ const BottomTab = createBottomTabNavigator(); function BottomTabNavigator() { const colorScheme = useColorScheme(); return ( ) => ({ title: 'Tab One', tabBarIcon: ({ color }) => , headerRight: () => ( navigation.navigate('Modal')} style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1, })}> ), })} /> , }} /> ); } /** * You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ */ function TabBarIcon(props: { name: React.ComponentProps['name']; color: string; }) { return ; }