Browse Source

refactor: remove promise all from AppContainer

pull/3106/head
mehmet-erim 6 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(() => {
fetchAppConfig();
Promise.all([
Font.loadAsync({
Roboto: require('native-base/Fonts/Roboto.ttf'),
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
...Ionicons.font,
}),
]).then(() => setIsReady(true));
Font.loadAsync({
Roboto: require('native-base/Fonts/Roboto.ttf'),
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
...Ionicons.font,
}).then(() => setIsReady(true));
}, []);
return (

Loading…
Cancel
Save