-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
44 lines (38 loc) · 1.16 KB
/
index.ios.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
import React, { Component } from 'react'
import { AppRegistry, Navigator } from 'react-native'
import Landing from './application/components/Landing'
import Dashboard from './application/components/Dashboard'
import { globals } from './application/styles'
import Register from './application/components/accounts/Register'
import Login from './application/components/accounts/Login'
class assemblies2 extends Component {
render() {
return (
<Navigator
style={globals.flex}
initialRoute={{ name: 'Landing' }}
renderScene={(route, navigator) => {
switch(route.name){
case 'Landing':
return (
<Landing navigator={navigator} />
)
case 'Dashboard':
return (
<Dashboard navigator={navigator} />
)
case 'Register':
return (
<Register navigator={navigator} />
)
case 'Login':
return (
<Login navigator={navigator} />
)
}
}}
/>
)
}
}
AppRegistry.registerComponent('assemblies2', () => assemblies2)