bluejoyq

Merge branch 'master' into 2018102169/searchGuide-design

# Conflicts:
#	searchGuide/.expo/packager-info.json
import React from 'react';
import React, {useEffect, useState} from 'react';
import Main from './components/Main/Main'
import { Provider,connect } from 'react-redux';
import Store from './reducers/Store';
import * as Font from 'expo-font';
const App = () => {
return (
<Provider store={Store}>
<Main />
</Provider>
)
const [ fontLoaded,setFontLoaded ] = useState(false);
useEffect( () => {
const fontLoading = async () => {
await Font.loadAsync({
'CustomFont': require('./assets/font/NanumBarunGothic.ttf'),
'CustomFontBold': require('./assets/font/NanumBarunGothicBold.ttf')
});
setFontLoaded(true);
}
fontLoading();
}, [] )
return (
<Provider store={Store}>
{
fontLoaded ? <Main /> : null
}
</Provider>
)
}
export default App;
\ No newline at end of file
......
No preview for this file type