-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
117 lines (113 loc) · 3.09 KB
/
index.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
import React, {Component} from 'react';
import {AppRegistry} from 'react-native';
import {createAppContainer, createSwitchNavigator} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import {createBottomTabNavigator} from 'react-navigation-tabs';
import {View} from 'native-base';
import {FooterTabComponent} from './src/view/Component/FooterTabs';
import {PatientInformationView} from './src/view/Main/PatientInformation';
import {StaffLoginView} from './src/view/Main/StaffLogin';
import {RegisterPatientView} from './src/view/Main/RegisterPatient';
import {RemindersView} from './src/view/Patient/Reminders/Reminders';
import {CaseNotesView} from './src/view/Patient/CaseNotes/CaseNotes';
import {MedicineView} from './src/view/Patient/Medicine/Medicine';
import {RemindersActionView} from './src/view/Patient/Reminders/RemindersAction';
import {ProfileView} from './src/view/Patient/Profile/Profile';
import {VitalsView} from './src/view/Patient/Vitals/Vitals';
import {FoodView} from './src/view/Patient/Food/Food';
import {VitalsHistoryView} from './src/view/Patient/Vitals/VitalsHistory';
import {FAQView} from './src/view/Patient/FAQ/FAQ';
const routes = createSwitchNavigator({
Main: createStackNavigator(
{
PatientInformation: {
screen: PatientInformationView,
},
StaffLogin: {
screen: StaffLoginView,
},
RegisterPatient: {
screen: RegisterPatientView,
},
},
{
defaultNavigationOptions: () => ({
header: <View />,
}),
},
),
Patient: createBottomTabNavigator(
{
Reminders: createStackNavigator(
{
Reminders: {
screen: RemindersView,
},
RemindersAction: {
screen: RemindersActionView,
},
},
{
defaultNavigationOptions: () => ({
header: <View />,
}),
},
),
Medicine: {
screen: MedicineView,
navigationOptions: () => ({
title: 'Medicine',
}),
},
CaseNotes: {
screen: CaseNotesView,
navigationOptions: () => ({
title: 'Case Notes',
}),
},
Food: {
screen: FoodView,
navigationOptions: () => ({
title: 'Food',
}),
},
Vitals: createStackNavigator(
{
Vitals: {
screen: VitalsView,
},
VitalsHistory: {
screen: VitalsHistoryView,
},
},
{
defaultNavigationOptions: () => ({
header: <View />,
}),
},
),
Faq: {
screen: FAQView,
navigationOptions: () => ({
title: 'Faq',
}),
},
Profile: {
screen: ProfileView,
navigationOptions: () => ({
title: 'Profile',
}),
},
},
{
tabBarComponent: FooterTabComponent,
},
),
});
const AppContainer = createAppContainer(routes);
class App extends Component {
render() {
return <AppContainer />;
}
}
AppRegistry.registerComponent('Dashboard', () => App);