-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
41 lines (37 loc) · 1.38 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import HomeScreen from './screens/HomeScreen';
import DictionaryScreen from './screens/DictionaryScreen';
import TestScreen from './screens/TestScreen';
import HeOrBvScreen from './screens/HeOrBvScreen';
const Drawer = createDrawerNavigator();
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="Home">
<Drawer.Screen name="Home (Translator)" component={HomeScreen} />
<Drawer.Screen name="Dictionary" component={DictionaryScreen} />
<Drawer.Screen name="HE or BV?" component={HeOrBvScreen} />
<Drawer.Screen name="Test" component={TestScreen} />
</Drawer.Navigator>
</NavigationContainer>
);
}
// function NewHomeScreen({ navigation }) {
// return (
// <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
// <Button
// onPress={() => navigation.navigate('Notifications')}
// title="Go to notifications"
// />
// </View>
// );
// }
// function NotificationsScreen({ navigation }) {
// return (
// <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
// <Button onPress={() => navigation.goBack()} title="Go back home" />
// </View>
// );
// }