bluejoyq

font add

......@@ -2,8 +2,8 @@
"devToolsPort": 19002,
"expoServerPort": 19000,
"packagerPort": 19001,
"packagerPid": 30416,
"packagerPid": 27784,
"expoServerNgrokUrl": "https://ru-c66.bluejoy.searchguide.exp.direct",
"packagerNgrokUrl": "https://packager.ru-c66.bluejoy.searchguide.exp.direct",
"ngrokPid": 9812
"ngrokPid": 16708
}
......
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