-
Notifications
You must be signed in to change notification settings - Fork 28
/
routes.js
43 lines (41 loc) · 945 Bytes
/
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
import HomeScreen from '../screens/HomeScreen';
import AboutScreen from '../screens/AboutScreen';
import DetailScreen from '../screens/DetailScreen';
import ModalScreen from '../screens/ModalScreen';
import SharedComponentsScreen from '../screens/SharedComponentsScreen';
import NavigationScreen from '../screens/NavigationScreen';
import HelloScreen from '../screens/HelloScreen';
const routes = {
Home: {
screen: HomeScreen,
path: "/"
},
Hello: {
screen: HelloScreen,
path: "/hello"
},
Modal: {
screen: ModalScreen,
path: "/modal"
},
Shared: {
screen: SharedComponentsScreen,
path: "/shared-component"
},
Navigation: {
screen: NavigationScreen,
path: "/navigation"
},
About: {
screen: AboutScreen,
path: "/about"
},
Detail: {
screen: DetailScreen,
path: "/detail"
}
};
export const initialRouteName = {
initialRouteName: 'Home',
}
export default routes;