-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (23 loc) · 1.1 KB
/
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
import React from 'react';
import { Button, View,StyleSheet,Text } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import HomeScreen from './src/ui/screens/HomeScreen'
import CountriesScreen from './src/ui/screens/CountriesScreen'
import DetailedCountry from './src/ui/screens/DetailedCountry'
import MoreScreen from './src/ui/screens/MoreScreen';
import FoldersScreen from './src/ui/screens/FoldersScreen';
const Drawer = createDrawerNavigator();
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="Home">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="Countries" component={CountriesScreen} />
<Drawer.Screen name="Folders" component={FoldersScreen} />
<Drawer.Screen name="More" component={MoreScreen} />
<Drawer.Screen name="DetailedCountry" component={DetailedCountry} options={{drawerLabel:()=>null,gestureEnabled:false}}/>
</Drawer.Navigator>
</NavigationContainer>
);
}