-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
54 lines (45 loc) · 1.92 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
42
43
44
45
46
47
48
49
50
51
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Image, AppRegistry } from 'react-native';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './screens/HomeScreen';
import LekScreen from './screens/LekScreen';
import AnfScreen from './screens/AnfScreen';
import ALec1Screen from './screens/ALec1Screen';
import MusScreen from './screens/MusScreen';
import MusITScreen from './screens/MusITScreen';
import DictionaryScreen from './screens/DictionaryScreen';
import GramScreen from './screens/GramScreen';
import VocabularyScreen from './screens/VocabularyScreen';
import { PaperProvider } from 'react-native-paper';
import { name as appName } from './app.json';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
const Stack = createStackNavigator();
function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Lektürephase" component={LekScreen} />
<Stack.Screen name="Anfangsunterricht" component={AnfScreen} />
<Stack.Screen name="Lectio prima" component={ALec1Screen} />
<Stack.Screen name="De mure et catto" component={MusScreen} />
<Stack.Screen name="Mus Rusticus et Urbanus" component={MusITScreen} />
<Stack.Screen name="Wörterbuch" component={DictionaryScreen} />
<Stack.Screen name="Vocabularium" component={VocabularyScreen} />
<Stack.Screen name="Grammatik" component={GramScreen} />
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>
);
}
export default function Main() {
return (
<PaperProvider>
<App />
</PaperProvider>
);
}
AppRegistry.registerComponent(appName, () => Main);