-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouter.js
20 lines (19 loc) · 913 Bytes
/
router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react'
import { Router, Scene } from 'react-native-router-flux'
import Login from './logincomponent';
import Signup from './signupcomponent';
import SellerDrawer from './sellerdrawercomponent';
import CustomerDrawer from './customerdrawercomponent';
import SellerorCustomer from './sellerorcustomercomponent';
const Routes = () => (
<Router>
<Scene key = "root" hideNavBar={true}>
<Scene key = "sellerdrawer" component = {SellerDrawer} title = "Drawer" />
<Scene key = "customerdrawer" component = {CustomerDrawer} title = "Drawer" />
<Scene key = "signup" component = {Signup} title = "Signup" />
<Scene key = "login" component = {Login} title = "Signin" />
<Scene key = "sellerorcustomer" component = {SellerorCustomer} title = "SellerorCustomer" initial = {true}/>
</Scene>
</Router>
)
export default Routes