-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRouter.js
50 lines (49 loc) · 1.54 KB
/
Router.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
import React from "react";
import { Scene, Router, Actions } from "react-native-router-flux";
import DefaultScreen from "./src/containers/DefaultScreen";
import DealDetailScreen from "./src/containers/DealDetailScreen";
import CartListScreen from "./src/containers/CartListScreen";
import CheckOutScreen from "./src/containers/CheckOutScreen";
import HomeScreen from "./src/containers/HomeScreen";
import UserForm from "./src/containers/UserForm";
import ShippingForm from "./src/containers/ShippingForm";
import OrderSuccess from "./src/containers/OrderSuccess";
const RouterComponent = () => {
return (
<Router>
<Scene key="root">
<Scene
key="homescreen"
component={HomeScreen}
hideNavBar="true"
initial
/>
<Scene
key="defaultscreen"
component={DefaultScreen}
hideNavBar="true"
/>
<Scene key="ordersuccess" component={OrderSuccess} hideNavBar="true" />
<Scene
key="dealdetail"
component={DealDetailScreen}
hideNavBar="true"
/>
<Scene key="cartlist" component={CartListScreen} hideNavBar="true" />
<Scene
key="checkoutdetail"
component={CheckOutScreen}
hideNavBar="true"
/>
<Scene key="userform" component={UserForm} hideNavBar="true" />
<Scene
key="shippingform"
component={ShippingForm}
hideNavBar="true"
//initial
/>
</Scene>
</Router>
);
};
export default RouterComponent;