-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStackNavigator.js
More file actions
36 lines (32 loc) · 1.29 KB
/
StackNavigator.js
File metadata and controls
36 lines (32 loc) · 1.29 KB
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
29
30
31
32
33
34
35
36
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import HomeScreen from './screens/HomeScreen';
import CountryDetScreen from './screens/CountryDetailsScreen';
import CountryListScreen from './screens/CountryListScreen';
import Explore from './screens/Explore';
import ContinentList from './screens/ContinentList';
import SpecificCountry from './screens/SpecificCountry';
const Stack = createStackNavigator();
const StackNavigator = () => {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerStyle: {
backgroundColor: 'black',
},
headerTintColor: 'white',
}}
>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Explore" component={Explore} />
<Stack.Screen name="CountryList" component={CountryListScreen} />
<Stack.Screen name="CountryDetails" component={CountryDetScreen} />
<Stack.Screen name="ContinentList" component={ContinentList} />
<Stack.Screen name="SpecificCountry" component={SpecificCountry} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default StackNavigator;