Created
January 22, 2022 18:46
-
-
Save Cst2989/3af3ad5e3fe3561f92ccb4c71138c74f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
useFonts, | |
Lato_400Regular, | |
Lato_900Black, | |
Lato_700Bold, | |
} from '@expo-google-fonts/lato'; | |
export default function App() { | |
const isLoadingComplete = useCachedResources(); | |
const colorScheme = useColorScheme(); | |
let [fontsLoaded] = useFonts({ | |
Lato_400Regular, | |
Lato_900Black, | |
Lato_700Bold, | |
}); | |
if (!isLoadingComplete || !fontsLoaded) { | |
return <AppLoading />; | |
} else { | |
return ( | |
<SafeAreaProvider> | |
<Navigation colorScheme={colorScheme} /> | |
<StatusBar /> | |
</SafeAreaProvider> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment