Due to article of SDK 45:
expo-app-loading is deprecated — use expo-splash-screen directly instead:
SplashScreen.preventAutoHideAsync()
andSplashScreen.hideAsync()
. The implementation is only a thin wrapper around expo-splash-screen that you can copy into your project if you’d like to keep using it.
But why? With this component we have declarative style for managing app`s state. This module is very useful in many cases as described in many docs on expo i.e:
import AppLoading from 'expo-app-loading';
import { useFonts, Inter_900Black } from '@expo-google-fonts/inter';
export default function App() {
let [fontsLoaded] = useFonts({
Inter_900Black,
});
if (!fontsLoaded) {
return <AppLoading />;
}
...
And expo team proposes add code of expo-app-loading
all time for such cases? Why just not to leave it this module?
What reason is for deprecation?