-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
111 lines (107 loc) · 2.67 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
/**
* @format
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import daysjs from 'dayjs';
import 'dayjs/locale/de';
import 'es6-symbol/implement';
import { Navigation } from 'react-native-navigation';
import { registerScreens } from './src/containers';
import { iconsMap } from './src/utils/AppIcons';
daysjs.locale('de');
registerScreens();
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setDefaultOptions({
topBar: {
title: { color: 'white', alignment: 'center', fontSize: 22 },
buttonColor: 'white',
backButton: {
color: 'white'
},
background: { color: '#14C788' }
},
bottomTabs: {
titleDisplayMode: 'alwaysShow'
},
bottomTab: {
iconColor: 'grey',
selectedIconColor: '#14C788'
}
});
Navigation.setRoot({
root: {
bottomTabs: {
children: [
{
stack: {
children: [
{
component: {
name: 'FeedScreen',
options: {
topBar: {
title: {
text: 'Home'
},
rightButtons: [
{
id: 'showWorkoutLogButton',
color: 'white',
icon: iconsMap['date-range']
}
]
}
}
}
}
],
options: {
bottomTab: {
text: 'Home',
icon: require('./res/icons/home.png')
}
}
}
},
{
stack: {
children: [
{
component: {
name: 'WorkoutMenuScreen'
}
}
],
options: {
bottomTab: {
text: 'Workout',
icon: require('./res/icons/weight-lifter.png')
}
}
}
},
{
stack: {
children: [
{
component: {
name: 'AchievementScreen',
passProps: {
text: 'This is tab 2'
}
}
}
],
options: {
bottomTab: {
text: 'Statistik',
icon: require('./res/icons/chart.png')
}
}
}
}
]
}
}
});
});