INNER CODE UNIT · JavaScript
_loadResourcesAsync
creativetimofficial/material-kit-react-native · App.js:65
const _loadResourcesAsync = async () => {
return Promise.all([...cacheImages(assetImages)]);
};
const onLayoutRootView = useCallback(async () => {
if (appIsReady) {
await SplashScreen.hideAsync();
}
}, [appIsReady]);
if (!appIsReady) {
return null;
}
return (
<NavigationContainer onReady={onLayoutRootView}>
<GalioProvider theme={materialTheme}>
<Block flex>