-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.android.js
63 lines (54 loc) · 1.5 KB
/
index.android.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
51
52
53
54
55
56
57
58
59
60
61
62
63
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import { Navigator } from 'react-native-deprecated-custom-components'
import CenaClientes from './src/components/CenaClientes';
import CenaPrincipal from './src/components/CenaPrincipal';
import CenaContatos from './src/components/CenaContatos';
import CenaEmpresa from './src/components/CenaEmpresa';
import CenaServicos from './src/components/CenaServicos';
class app5 extends Component {
render() {
return (
<Navigator
initialRoute = {{id: 'a'}}
renderScene = { (route, navigator) => {
switch (route.id) {
case 'a':
//exebir a cenaPrincipal
return(
<CenaPrincipal nav={navigator} />
);
break;
case 'clientes':
//exibir cenaClientes
return(
<CenaClientes nav={navigator} />
);
break;
case 'contatos':
//exibir cenaContatos
return(
<CenaContatos nav={navigator} />
);
break;
case 'empresa':
//exibir cenaEmpresa
return(
<CenaEmpresa nav={navigator} />
);
break;
case 'servicos':
//exibir cenaServicos
return(
<CenaServicos nav={navigator} />
);
break;
}
}}
/>
);
}
}
AppRegistry.registerComponent('app5', () => app5);