-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
143 lines (140 loc) · 4.38 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import About from './components/about/About';
import Camera from './components/camera/Camera';
import Diary from './components/diary/Diary';
import HelpMyself from './components/help_myself/HelpMyself';
import HowToHelp from './components/how_to_help/HowToHelp';
import MainMenu from './components/main_menu/MainMenuComponent';
import MyFiles from './components/my_files/MyFiles';
import Pandemic from './components/pandemic/Pandemic';
import PsychoManual from './components/psycho_manual/PsychoManual';
import SafetyPlan from './components/safety_plan/SafetyPlan';
import SplashScreen from './components/splash_screen/SplashScreenComponent';
import SuicideMyths from './components/suicide_myths/SuicideMyths';
import Support from './components/support/Support';
import SupportManual from './components/support_manual/SupportManual';
import ThinkingAbout from './components/thinking_about/ThinkingAbout';
import ValInfo from './components/val_info/ValuableInfo';
import WarnSigns from './components/warn_signs/WarnSigns';
import colors from './helpers/colors';
import { normalize } from './helpers/sizes';
import Logo from './images/logo.png';
import { Image } from 'react-native';
const Stack = createStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerStyle: {
backgroundColor: '#8d62a6',
},
headerTintColor: colors.white,
headerTitleStyle: {
fontSize: normalize(16),
fontWeight: '500',
},
}}
>
<Stack.Screen
name="SplashScreen"
options={{
headerShown: false,
}}
component={SplashScreen}
/>
<Stack.Screen
name="Camera"
options={{ title: 'Kamera' }}
component={Camera}
/>
<Stack.Screen
name="ValInfo"
options={{ title: 'Značajne informacije' }}
component={ValInfo}
/>
<Stack.Screen
name="SuicideMyths"
options={{ title: 'Mitovi o samoubistvu' }}
component={SuicideMyths}
/>
<Stack.Screen
name="Support"
options={{ title: 'Podrška' }}
component={Support}
/>
<Stack.Screen
name="SupportManual"
options={{ title: 'Priručnik podrške' }}
component={SupportManual}
/>
<Stack.Screen
name="WarnSigns"
component={WarnSigns}
options={{ title: 'Znaci upozorenja' }}
/>
<Stack.Screen
name="PsychoManual"
options={{ title: 'Psihološki priručnik' }}
component={PsychoManual}
/>
<Stack.Screen
name="HelpMyself"
options={{ title: 'Kako da pomognem sebi sada?' }}
component={HelpMyself}
/>
<Stack.Screen
name="MyFiles"
options={{ title: 'Moj spomenar' }}
component={MyFiles}
/>
<Stack.Screen
name="About"
component={About}
options={{ title: 'O udruženju i o aplikaciji' }}
/>
<Stack.Screen
name="Pandemic"
component={Pandemic}
options={{ title: 'Mentalno zdravlje u vreme pandemije COVID-19' }}
/>
<Stack.Screen
name="HowToHelp"
component={HowToHelp}
options={{ title: 'Kako pomoći?' }}
/>
<Stack.Screen
name="Diary"
component={Diary}
options={{ title: 'Moj dnevnik' }}
/>
<Stack.Screen
name="ThinkingAbout"
component={ThinkingAbout}
options={{ title: 'Razmišljaš o samoubistvu?' }}
/>
<Stack.Screen
name="SafetyPlan"
component={SafetyPlan}
options={{ title: 'Moj sigurnosni plan' }}
/>
<Stack.Screen
name="MainMenu"
component={MainMenu}
options={{
headerLeft: null,
headerTitle: () => (
<Image
style={{ marginLeft: 20, width: 122, height: 35 }}
source={Logo}
/>
),
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;