This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
45 lines (43 loc) · 1.43 KB
/
App.js
File metadata and controls
45 lines (43 loc) · 1.43 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
37
38
39
40
41
42
43
44
45
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import EditTable from './screens/edit_table';
import EditSubjectForm from './screens/edit_subject_form';
import History from './screens/history';
import Help from './screens/help'
import About from './screens/about'
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="EditTable">
<Stack.Screen
name="EditTable"
component={EditTable}
options={{title: 'Редактировать', headerShown: false}}
/>
<Stack.Screen
name="EditSubjectForm"
component={EditSubjectForm}
options={{title: 'Редактировать предмет', headerShown: false}}
/>
<Stack.Screen
name="History"
component={History}
options={{title: 'История', headerShown: false}}
/>
<Stack.Screen
name="Help"
component={Help}
options={{title: 'Помощь', headerShown: false}}
/>
<Stack.Screen
name="About"
component={About}
options={{title: 'О программе', headerShown: false}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}