You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Ionicons}from'@expo/vector-icons';import*asFontfrom'expo-font';import*asSplashScreenfrom'expo-splash-screen';import*asReactfrom'react';exportdefaultfunctionuseCachedResources(){const[isLoadingComplete,setLoadingComplete]=React.useState(false);// Load any resources or data that we need prior to rendering the appReact.useEffect(()=>{asyncfunctionloadResourcesAndDataAsync(){try{SplashScreen.preventAutoHideAsync();// Load fontsawaitFont.loadAsync({
...Ionicons.font,'space-mono': require('../assets/fonts/SpaceMono-Regular.ttf'),});}catch(e){// We might want to provide this error information to an error reporting serviceconsole.warn(e);}finally{setLoadingComplete(true);SplashScreen.hideAsync();}}loadResourcesAndDataAsync();},[]);returnisLoadingComplete;}
App.tsx
useCachedResources
GLViewScreen
Throw error and display message
The text was updated successfully, but these errors were encountered: