1navigation.navigate('Root', {
2 screen: 'Settings',
3 params: { user: 'jane' },
4});
1const Tab = createBottomTabNavigator();
2
3function HomeTabs() {
4 return (
5 <Tab.Navigator>
6 <Tab.Screen name="Feed" component={FeedScreen} />
7 <Tab.Screen name="Profile" component={ProfileScreen} />
8 <Tab.Screen name="Account" component={AccountScreen} />
9 </Tab.Navigator>
10 );
11}
12
13const Stack = createStackNavigator();
14
15export default function App() {
16 return (
17 <NavigationContainer>
18 <Stack.Navigator>
19 <Stack.Screen name="Home" component={HomeTabs} />
20 <Stack.Screen name="Settings" component={SettingsScreen} />
21 </Stack.Navigator>
22 </NavigationContainer>
23 );
24}