Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Remove deprecated expo-app-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed May 15, 2022
1 parent 48fd961 commit ab3fdd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"dooboo-ui": "^0.1.65",
"expo": "^45.0.4",
"expo-ads-admob": "~13.0.0",
"expo-app-loading": "~2.0.0",
"expo-apple-authentication": "~4.2.1",
"expo-asset": "~8.5.0",
"expo-auth-session": "~3.6.1",
Expand Down
8 changes: 4 additions & 4 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import React, {FC, ReactElement, ReactNode, useEffect} from 'react';
import {dark, light} from './theme';

import {ActionSheetProvider} from '@expo/react-native-action-sheet';
import AppLoading from 'expo-app-loading';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {AuthProvider} from './providers/AuthProvider';
import ComponentWrapper from './utils/ComponentWrapper';
Expand Down Expand Up @@ -91,12 +90,13 @@ const HackatalkThemeProvider: FC<{children: ReactElement}> = ({children}) => {
if (!__DEV__) {
checkUpdate();
}

SplashScreen.hideAsync();
}
}, [assets, dooboouiAssets]);

if ((!assets || !dooboouiAssets) && !__DEV__) {
// eslint-disable-next-line no-console
return <AppLoading autoHideSplash={false} onError={console.warn} />;
if (!assets || !dooboouiAssets) {
return null;
}

return (
Expand Down
9 changes: 1 addition & 8 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7078,13 +7078,6 @@ expo-ads-admob@~13.0.0:
dependencies:
"@expo/config-plugins" "^4.0.14"

expo-app-loading@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/expo-app-loading/-/expo-app-loading-2.0.0.tgz#4c91c787a7c8048eb273fb7d4d2e4b0bef5fc990"
integrity sha512-Ym0Xteo15642UGDh11nTRa/pmbIVvvEczG7nu0N+n3SKln6nZlLk7pmwI2hcdk1Jgo+2IkC/3n9NmQWvkgkPHA==
dependencies:
expo-splash-screen "~0.15.0"

expo-apple-authentication@~4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/expo-apple-authentication/-/expo-apple-authentication-4.2.1.tgz#a12e3f00ed6967588b1d060f2c3d94de3dd23724"
Expand Down Expand Up @@ -7303,7 +7296,7 @@ expo-screen-orientation@~4.2.0:
dependencies:
"@expo/config-plugins" "^4.0.14"

expo-splash-screen@~0.15.0, expo-splash-screen@~0.15.1:
expo-splash-screen@~0.15.1:
version "0.15.1"
resolved "https://registry.yarnpkg.com/expo-splash-screen/-/expo-splash-screen-0.15.1.tgz#bdfb2434bda7fb1cde97e029fc7a791d7b3e3125"
integrity sha512-Yvz6p/ig+cQp9c1PLSm1YshpNJXRp/xtxajfwPq2kampf61zA+xnoMk+J6YcNeXeIlqHysj3ND2tMhEEQjM/ow==
Expand Down

0 comments on commit ab3fdd7

Please sign in to comment.