-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (30 loc) · 963 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { Drawer } from 'native-base';
import getTheme from './native-base-theme/components';
import material from './native-base-theme/variables/platform';
import { Container, Header, Content, StyleProvider } from 'native-base';
import Layout from './src/core/layout';
import { Provider } from 'react-redux';
import store from './src/utils/store'
export default class App extends Component {
async componentWillMount() {
await Expo.Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
});
}
render() {
return (
<Provider store={store}>
<StyleProvider style={getTheme(material)}>
<Layout/>
</StyleProvider>
</Provider>
);
}
}