-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
46 lines (42 loc) · 994 Bytes
/
App.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
import { StackNavigator } from 'react-navigation';
import React from 'react'
import { COLOR, ThemeProvider } from 'react-native-material-ui';
import RnIndex from './src/RnIndex';
import { BASIC,Layers,turf,Offline } from './src/demoList';
const uiTheme = {
palette: {
primaryColor: COLOR.blue500,
},
toolbar: {
container: {
height: 50,
},
},
};
const scenes = {
native: {
screen: RnIndex,
navigationOptions:{
header:null
}
},
};
[...BASIC,...Layers,...turf,...Offline].map((component) => {
const Module = component.module.default;
scenes[component.title] = {
screen: Module,
navigationOptions:{
header:null
}
};
});
const App = StackNavigator(scenes);
export default class extends React.Component {
render(){
return (
<ThemeProvider uiTheme={uiTheme}>
<App />
</ThemeProvider>
)
}
}