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
834 B
24 lines
834 B
import { NavigationContainer } from "@react-navigation/native";
|
|
import { createStackNavigator } from "@react-navigation/stack";
|
|
|
|
import React from "react";
|
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
import CityDetails from "../screens/CityDetails";
|
|
import CityList from "../screens/CityList";
|
|
|
|
export default function StackNavigation() {
|
|
|
|
const Stack = createStackNavigator();
|
|
return (
|
|
<Stack.Navigator initialRouteName="CityList">
|
|
<Stack.Screen name="CityList" component={CityList} options={{
|
|
headerShown: false,
|
|
}}/>
|
|
<Stack.Screen name="CityDetails" component={CityDetails} options={{
|
|
headerShown: false,
|
|
}}/>
|
|
</Stack.Navigator>
|
|
|
|
|
|
)
|
|
} |