-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathroutes.js
88 lines (82 loc) · 1.86 KB
/
routes.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
import React from 'react'
import {
View, Text, TouchableHighlight
} from 'react-native'
import toList from './utils/toList'
import appStyles from './styles/app';
import Home from './views/Home';
import Database, { Routes as DatabaseRoutes } from './views/Database';
import Authentication, { Routes as AuthRoutes } from './views/Authentication';
import Messaging, { Routes as MessagingRoutes } from './views/Messaging';
import Presence, { Routes as PresenceRoutes } from './views/Presence'
import Analytics, { Routes as AnalyticsRoutes } from './views/Analytics';
import Storage, { Routes as StorageRoutes } from './views/Storage';
import RemoteConfig, { Routes as RemoteConfigRoutes } from './views/RemoteConfig';
export type Route = {
key: String,
Component: Object,
title: String
};
export const exampleRoutes = {
'analytics': {
route: {
title: 'Analytics',
Component: Analytics
},
children: AnalyticsRoutes
},
'database': {
route: {
title: 'Database',
Component: Database
},
children: DatabaseRoutes
},
'auth': {
route: {
title: 'Authentication',
Component: Authentication
},
children: AuthRoutes
},
'presence': {
route: {
title: 'Presence',
Component: Presence
},
children: PresenceRoutes
},
'messaging': {
route: {
title: 'Messaging',
Component: Messaging
},
children: MessagingRoutes
},
'storage': {
route: {
title: 'Storage',
Component: Storage
},
children: StorageRoutes
},
'remoteConfig': {
route: {
title: 'Remote Config',
Component: RemoteConfig
},
children: RemoteConfigRoutes
}
}
export const routes = toList({
...exampleRoutes,
'home': {
route: {
title: 'Home',
Component: Home,
headerStyle: {},
},
children: {}
},
});
export default routes;