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>
    )
  }