-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
135 lines (105 loc) · 2.64 KB
/
Copy pathApp.js
File metadata and controls
135 lines (105 loc) · 2.64 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
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
128
129
130
131
132
133
134
135
import React, {useState} from 'react';
import { View, Text, StyleSheet, FlatList, Alert, TouchableOpacity, Pressable, TextInput} 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>
)
}
const styles = StyleSheet.create({
container: {
flex: 1
}
})
export default App;