-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.js
31 lines (27 loc) · 652 Bytes
/
Main.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
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { ThemeContext, getTheme } from 'react-native-material-ui';
import App from './App';
import colors from './src/utils/colors'
const uiTheme = {
palette: {
primaryColor: colors.primary,
accentColor: colors.accent,
},
toolbar: {
container: {
height: 50,
},
},
};
class Main extends Component {
render() {
return (
<ThemeContext.Provider value={getTheme(uiTheme)}>
<StatusBar backgroundColor={colors.dark} barStyle="light-content"/>
<App />
</ThemeContext.Provider>
);
}
}
export default Main;