-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAppRoute.js
More file actions
25 lines (22 loc) · 749 Bytes
/
Copy pathAppRoute.js
File metadata and controls
25 lines (22 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { Router, Overlay, Modal, Lightbox, Stack, Scene, Tabs } from 'react-native-router-flux';
import { Home } from './pages/Home';
import { One } from './pages/One';
import { Two } from './pages/Two';
import { Three } from "./pages/Three";
export const AppRoute = () => (
<Router>
<Overlay key="overlay">
<Modal key="modal">
<Lightbox key="lightbox" hideNavBar>
<Stack key="root">
<Scene key="page_home" component={Home} hideNavBar />
<Scene key="page_1" component={One} />
<Scene key="page_2" component={Two} />
<Scene key="page_3" component={Three} />
</Stack>
</Lightbox>
</Modal>
</Overlay>
</Router>
);