-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
122 lines (100 loc) · 2.49 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
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Login from './components/screens/Login';
import HomePage from './components/screens/HomePage';
import BasicScreen from './components/screens/BasicScreen'
import StressRelief from './components/screens/StressRelief'
import SleepScreen from './components/screens/SleepScreen'
import Forum from './components/screens/Forum'
import SignUp from './components/screens/SignUp'
const App = () => {
const Stack = createStackNavigator();
//Login Screen
function Login_Screen({navigation}) {
return (
<View>
<Login navigation = {navigation}/>
</View>
)
}
//HomePage screen
function Home_Page({navigation}) {
return (
<View>
<HomePage navigation = {navigation} />
</View>
)
}
//Learn the basics screen
function Basics({navigation}) {
return (
<View>
<BasicScreen navigation = {navigation}/>
</View>
)
}
// For sleep screen
function sleep({navigation}) {
return (
<SleepScreen navigation = {navigation} />
)
}
//Stress relief screen
function stress({navigation}) {
return (
<StressRelief navigation = {navigation} />
)
}
//forum screen
function forum({navigation}) {
return (
<Forum navigation = {navigation} />
)
}
//signup screen
function signUp({navigation}) {
return (
<SignUp navigation = {navigation} />
)
}
return (
<NavigationContainer>
<Stack.Navigator
screenOptions = {{
header: () => null
}}>
<Stack.Screen
name = 'Login'
component = {Login_Screen}
/>
<Stack.Screen
name = 'Home_Page'
component = {Home_Page}
/>
<Stack.Screen
name = 'Basics'
component = {Basics}
/>
<Stack.Screen
name = 'Sleep'
component = {sleep}
/>
<Stack.Screen
name = 'Stress'
component = {stress}
/>
<Stack.Screen
name = 'Forum'
component = {forum}
/>
<Stack.Screen
name = 'Signup'
component = {signUp}
/>
</Stack.Navigator>
</NavigationContainer>
)
}
export default App