const isLoadingComplete = useCachedResources(
[
require('./assets/logo'),
require('./assets/headerImage')
],
{
otherFont1: require('../fonts/otherFont1.ttf'),
otherFont2: require('../fonts/otherFont2.ttf'),
otherFont3: require('../fonts/otherFont3.ttf'),
}
);
if (!isLoadingComplete) {
return <Loading />;
} else {
return <HomeScreen />;
}
};