You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1005 B
24 lines
1005 B
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
|
import { NavigationContainer } from "@react-navigation/native";
|
|
import React from "react";
|
|
import CityList from "../screens/CityList";
|
|
import StackNavigation from "./StackNavigation";
|
|
|
|
export default function TabNavigation() {
|
|
const BottomTabNavigator = createBottomTabNavigator();
|
|
return (
|
|
<NavigationContainer>
|
|
<BottomTabNavigator.Navigator initialRouteName="Home">
|
|
<BottomTabNavigator.Screen name="Home" component={StackNavigation}
|
|
options={{
|
|
title: 'Home'
|
|
}}/>
|
|
<BottomTabNavigator.Screen name="CityList" component={CityList}
|
|
options={{
|
|
title: 'CityList',
|
|
}}/>
|
|
</BottomTabNavigator.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
}
|