Browse Source

refactor: remove promise all from AppContainer

pull/3106/head
mehmet-erim 7 years ago
parent
commit
072fa04314
  1. 12
      templates/app/react-native/src/components/AppContainer/AppContainer.js

12
templates/app/react-native/src/components/AppContainer/AppContainer.js

@ -53,13 +53,11 @@ function AppContainer({ language, fetchAppConfig, token, setToken }) {
useEffect(() => { useEffect(() => {
fetchAppConfig(); fetchAppConfig();
Promise.all([ Font.loadAsync({
Font.loadAsync({ Roboto: require('native-base/Fonts/Roboto.ttf'),
Roboto: require('native-base/Fonts/Roboto.ttf'), Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'), ...Ionicons.font,
...Ionicons.font, }).then(() => setIsReady(true));
}),
]).then(() => setIsReady(true));
}, []); }, []);
return ( return (

Loading…
Cancel
Save