import { useFonts , OpenSans_600SemiBold , OpenSans_400Regular } from '@expo-google-fonts/open-sans' ; import AppLoading from 'expo-app-loading' ; import React from 'react' ; export const AssetProvider = ( props ) => { const [ isLoaded ] = useFonts ( { 'open-sans-regular' : OpenSans_400Regular , 'open-sans-semibold' : OpenSans_600SemiBold } ) ; return isLoaded ? < > { props . children } < /> : < AppLoading />; } ;