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
this error appear when i run my app: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
#12
Open
jasonleewimi opened this issue
Jan 13, 2021
· 3 comments
`import React, {useState} from 'react';
import * as Font from 'expo-font';
import Home from './screens/home';
import {AppLoading} from 'expo-app-loading';
Hello. Please type this in the command pannel: expo install expo-app-loading
Also, do not destructure AppLoading while importing. Use: import AppLoading from 'expo-app-loading';
Finally, do not forget onError prompt of AppLoading. Use it like this: <AppLoading startAsync = {getFonts} onFinish = {() => setFontsLoaded(true)} onError={() => console.log('error')} />
use this code in your App.js file instead after pasting your custom fonts in your assets/fonts folder.
import { useCallback } from 'react';
import { useFonts } from 'expo-font';
import * as SplashScreen from 'expo-splash-screen';
import Home from './screens/home';
import {View} from 'react-native';
No description provided.
The text was updated successfully, but these errors were encountered: