-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreens.js
97 lines (95 loc) · 2 KB
/
screens.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
import { Dimensions } from 'react-native';
import { NavigationActions } from 'react-navigation';
import { generateComponent } from './utils';
import {
NAVIGATOR_COVER,
NAVIGATOR_MODAL,
NAVIGATOR_TAB,
NAVIGATOR_TEAM,
SCREEN_COVER,
SCREEN_DRAWS,
SCREEN_GAMEDAY,
SCREEN_LADDERS,
SCREEN_MODAL,
SCREEN_NEWS,
SCREEN_NOTIFICATION,
SCREEN_PLAYER,
SCREEN_SPLASH,
SCREEN_TEAM,
} from './screen-constants/';
export const windowSize = Dimensions.get('window');
export const SplashScreen = generateComponent(
'Splash',
NavigationActions.navigate({
routeName: SCREEN_NOTIFICATION,
}),
);
export const NotificationScreen = generateComponent(
'Notification',
NavigationActions.navigate({
routeName: NAVIGATOR_MODAL,
}),
);
export const CoverScreen = generateComponent(
'Cover',
NavigationActions.navigate({
routeName: SCREEN_LADDERS,
}),
{
backgroundColor: '#ffff00',
width: windowSize.width,
height: windowSize.height,
},
);
export const LaddersScreen = generateComponent(
'Ladders',
NavigationActions.navigate({
routeName: SCREEN_DRAWS,
}),
{
backgroundColor: '#ff00ff',
width: windowSize.width,
height: windowSize.height,
},
);
export const DrawsScreen = generateComponent(
'Draws',
NavigationActions.navigate({
routeName: NAVIGATOR_TAB
}),
{
backgroundColor: '#00ffff',
width: windowSize.width,
height: windowSize.height,
},
);
export const Modal = generateComponent(
'Modal',
NavigationActions.navigate({
routeName: SCREEN_MODAL
}),
);
export const Tab1 = generateComponent(
'Tab1',
NavigationActions.navigate({
routeName: NAVIGATOR_TEAM,
}),
);
export const Tab3 = generateComponent(
'Tab3',
NavigationActions.navigate({
routeName: SCREEN_MODAL
}),
);
export const Stack1 = generateComponent(
'Stack1',
NavigationActions.navigate({
routeName: SCREEN_PLAYER,
}),
);
export const Stack2 = generateComponent(
'Stack2',
NavigationActions.navigate({
routeName: SCREEN_PLAYER,
}),
);