forked from TheHashHub/eTestApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
42 lines (36 loc) · 1.06 KB
/
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
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { Provider } from 'react-redux'
import { StyleProvider } from 'native-base'
// import * as Expo from 'expo'
import Main from './js/index'
import getTheme from './js/themes/components'
import variables from './js/themes/variables/commonColor'
import configureStore from './js/store'
let store = configureStore(() => {})
export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {
ready: false,
store,
}
}
// async componentWillMount() {
// await Expo.Font.loadAsync({
// Roboto: require('native-base/Fonts/Roboto.ttf'),
// Ionicons: require('@expo/vector-icons/fonts/Ionicons.ttf'),
// Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
// })
// this.setState({ ready: true })
// }
render() {
return (
<StyleProvider style={getTheme(variables)}>
<Provider store={this.state.store}>
<Main />
</Provider>
</StyleProvider>
)
}
}