-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
127 lines (117 loc) · 4.04 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { Provider } from "react-redux";
import Ionicons from "react-native-vector-icons/Ionicons";
Ionicons.loadFont();
// import store
import configureStore from "./store";
const store = configureStore();
const Stack = createStackNavigator();
const Tab = createBottomTabNavigator();
// import the components
import ResearchLevel from "./screens/ResearchLevel";
import LandingPage from "./screens/LandingPage";
import ResearchInterests from "./screens/ResearchInterests";
import ResearchAreas from "./screens/ResearchAreas";
import AvailableMentors from "./screens/AvailableMentors";
import MentorDetail from "./screens/MentorDetail";
import Signup from "./screens/Signup";
import Dashboard from "./screens/Dashboard";
import LoadingScreen from "./screens/LoadingScreen";
import Login from "./screens/Login";
import Language from "./screens/Language";
import ChatRoom from "./components/ChatRoom";
import DirectoryPage from "./screens/DirectoryPage";
import UpdatingInterests from "./screens/UpdatingInterests";
import DirectoryDetail from "./screens/DirectoryDetail";
// do we need this import stil ????
import { decode, encode } from "base-64";
if (!global.btoa) {
global.btoa = encode;
}
if (!global.atob) {
global.atob = decode;
}
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Loading"
component={LoadingScreen}
options={{ headerShown: false, gestureEnabled: false }}
/>
<Stack.Screen
name="Home"
component={LandingPage}
options={{ headerShown: false, gestureEnabled: false }}
/>
<Stack.Screen
name="Login"
component={Login}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="Level"
component={ResearchLevel}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="Interests"
component={ResearchInterests}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="Areas"
component={ResearchAreas}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="AvailableMentors"
component={AvailableMentors}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="MentorDetail"
component={MentorDetail}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="Language"
component={Language}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="Signup"
component={Signup}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen name="Dashboard" component={Dashboard} />
<Stack.Screen
name="DirectoryPage"
component={DirectoryPage}
options={{
gestureEnabled: false,
headerTitle: "",
headerTransparent: true,
headerLeft: null,
}}
/>
<Stack.Screen name="ChatRoom" component={ChatRoom} />
<Stack.Screen
name="UpdatingInterests"
component={UpdatingInterests}
options={{ headerTransparent: true, headerTitle: "" }}
/>
<Stack.Screen
name="DirectoryDetail"
component={DirectoryDetail}
options={{ headerTransparent: true, headerTitle: "" }} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}