-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (25 loc) · 845 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import PokemonListStack from "./src/pokemon_list_stack"
import FavouritePokemonScreen from "./src/favourite_pokemon_screen";
import PokemonWorldMapScreen from "./src/pokemon_world_map_screen";
const Tab = createBottomTabNavigator();
function App() {
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Pokemons" component={PokemonListStack} />
<Tab.Screen
name="Favourite Pokemon"
component={FavouritePokemonScreen}
/>
<Tab.Screen
name="Pokemon's world map"
component={PokemonWorldMapScreen}
/>
</Tab.Navigator>
</NavigationContainer>
);
}
export default App;