-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
63 lines (59 loc) · 2.07 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
52
53
54
55
56
57
58
59
60
61
62
63
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import {createStackNavigator} from '@react-navigation/stack';
import {NavigationContainer} from '@react-navigation/native';
import React from 'react';
import {
StyleSheet,
} from 'react-native';
import Splash from './src/screens/Splash';
import Login from './src/screens/Login';
import Signup from './src/screens/Signup';
import MyTab from './src/components/MyTab';
import StaffTab from './src/components/StaffTab';
import ServiceDetails from './src/app/ServiceDetails';
import AdminTab from './src/components/AdminTab';
import PopupAppoiment from './src/app/PopupAppoiment';
import PopupService from './src/app/PopupService';
export const UserContext = React.createContext();
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={Splash} options={{ headerShown: false}} />
<Stack.Screen name="Login" component={Login} options={{ headerShown: false}} />
<Stack.Screen name="Signup" component={Signup} options={{ headerShown: false}} />
<Stack.Screen name="MyTab" component={MyTab} options={{ headerShown: false}} />
<Stack.Screen name="StaffTab" component={StaffTab} options={{ headerShown: false}} />
<Stack.Screen name="AdminTab" component={AdminTab} options={{ headerShown: false}} />
<Stack.Screen name="Detail" component={ServiceDetails} options={{ headerShown: false}} />
<Stack.Screen name="PopupAdd" component={PopupAppoiment} options={{ headerShown: false}} />
<Stack.Screen name="PopupService" component={PopupService} options={{ headerShown: false}} />
</Stack.Navigator>
</NavigationContainer>
);
};
const styles = StyleSheet.create({
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
},
highlight: {
fontWeight: '700',
},
});
export default App;