use expo-splash-screen instead of react-native-splash-screen

This commit is contained in:
Ansh Nanda
2023-04-09 17:14:41 -07:00
parent 3cb04e4a72
commit 879b0319e8
+2 -2
View File
@@ -2,7 +2,7 @@ import 'react-native-url-polyfill/auto'
import React, {useState, useEffect} from 'react' import React, {useState, useEffect} from 'react'
import {Linking} from 'react-native' import {Linking} from 'react-native'
import {RootSiblingParent} from 'react-native-root-siblings' 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 {SafeAreaProvider} from 'react-native-safe-area-context'
import {GestureHandlerRootView} from 'react-native-gesture-handler' import {GestureHandlerRootView} from 'react-native-gesture-handler'
import {observer} from 'mobx-react-lite' import {observer} from 'mobx-react-lite'
@@ -28,7 +28,7 @@ const App = observer(() => {
setRootStore(store) setRootStore(store)
analytics.init(store) analytics.init(store)
notifee.init(store) notifee.init(store)
SplashScreen.hide() SplashScreen.hideAsync()
Linking.getInitialURL().then((url: string | null) => { Linking.getInitialURL().then((url: string | null) => {
if (url) { if (url) {
handleLink(url) handleLink(url)