From 879b0319e8a9ef17a9d2ea868fa4b58f6adaea1e Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Sun, 9 Apr 2023 17:14:41 -0700 Subject: [PATCH] use expo-splash-screen instead of react-native-splash-screen --- src/App.native.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.native.tsx b/src/App.native.tsx index 0adbae6069..e0e030cbc1 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -2,7 +2,7 @@ import 'react-native-url-polyfill/auto' import React, {useState, useEffect} from 'react' import {Linking} from 'react-native' import {RootSiblingParent} from 'react-native-root-siblings' -import SplashScreen from 'react-native-splash-screen' +import * as SplashScreen from 'expo-splash-screen' import {SafeAreaProvider} from 'react-native-safe-area-context' import {GestureHandlerRootView} from 'react-native-gesture-handler' import {observer} from 'mobx-react-lite' @@ -28,7 +28,7 @@ const App = observer(() => { setRootStore(store) analytics.init(store) notifee.init(store) - SplashScreen.hide() + SplashScreen.hideAsync() Linking.getInitialURL().then((url: string | null) => { if (url) { handleLink(url)