The AppLoading component is no longer in the basic expo library.
You need to change the import statement to:
import AppLoading from “expo-app-loading”;
(And, of course, install that library.)
Also, the AppLoading API requires an onError prop – otherwise an error gets thrown that doesn’t mention this specific problem. So, here’s an example:
<AppLoading startAsync={restoreUser} onFinish={() => setIsReady(true)} onError={console.warn} />