Skip to content

Instantly share code, notes, and snippets.

@Cst2989
Created January 22, 2022 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cst2989/3af3ad5e3fe3561f92ccb4c71138c74f to your computer and use it in GitHub Desktop.
Save Cst2989/3af3ad5e3fe3561f92ccb4c71138c74f to your computer and use it in GitHub Desktop.
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