-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.js
79 lines (68 loc) · 2.19 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import 'react-native-gesture-handler';
import React from 'react';
import {View, StyleSheet, Text, SafeAreaView, Pressable} from 'react-native';
import Home from 'linkup/linkup-frontend/src/screens/Home.js';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Fontisto from 'react-native-vector-icons/Fontisto';
import Signup from 'linkup/linkup-frontend/src/screens/Signup.js';
import Candidate from './linkup-frontend/src/screens/Candidate';
import Notifs from './linkup-frontend/src/screens/Notifs';
import Recruiter from 'linkup/linkup-frontend/src/screens/Recruiter.js';
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
// import MaterialCommunityIcons from 'react-native-vector-icons/MateralCommunityIcons';
import Amplify from "@aws-amplify/core";
import config from './src/aws-exports.js';
import {withAuthenticator} from 'aws-amplify-react-native';
import Recruiters from './linkup-frontend/src/screens/Recruiter';
import Candidates from './linkup-frontend/src/screens/Candidate';
Amplify.configure({
...config,
Analytics: {
disabled: true,
},
});
const App = () => {
const Stack = createNativeStackNavigator();
// const [activeScreen, setActiveScreen] = useState('HOME');
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{ gestureEnabled: false }}
initialRouteName="Signup"
>
<Stack.Screen
name="Recruiter"
component={Recruiters}
// num={num}
// setNum={setNum}
/>
<Stack.Screen
// options={{ gestureEnabled: false }}
name="Candidate"
component={Candidates}
/>
<Stack.Screen name="Signup" component={Signup} />
<Stack.Screen
name="Notifs"
component={Notifs}
/>
<Stack.Screen
name="Home"
component={Home}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
const styles = StyleSheet.create({
root: {
flex: 1,
},
pageContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
export default withAuthenticator(App);