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.
18 lines
576 B
18 lines
576 B
import { NavigationContainer } from "@react-navigation/native";
|
|
import { createStackNavigator } from "@react-navigation/stack";
|
|
|
|
import React from "react";
|
|
import CityList from "../CityList";
|
|
|
|
export default function StackNavigation() {
|
|
|
|
const Stack = createStackNavigator();
|
|
return (
|
|
<NavigationContainer>
|
|
<Stack.Navigator initialRouteName="CityList">
|
|
<Stack.Screen name="CityList" component={CityList}/>
|
|
<Stack.Screen name="CityDetails" component={CityDetails}/>
|
|
</Stack.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
} |