From 8b5bd0ffed78667ac06be062e4ae44e6c66d63e9 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 4 Aug 2024 18:30:55 -0700 Subject: [PATCH] Revert "temporarily disable splash" This reverts commit 3c36687ba6abd5b148b235c4bcea4542880dca59. --- src/Splash.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Splash.tsx b/src/Splash.tsx index 561dea98c8..42a21c0839 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -1,27 +1,28 @@ import React, {useCallback, useEffect} from 'react' import { - AccessibilityInfo, - Image as RNImage, - StyleSheet, - useColorScheme, View, + StyleSheet, + Image as RNImage, + AccessibilityInfo, + useColorScheme, } from 'react-native' +import * as SplashScreen from 'expo-splash-screen' +import {Image} from 'expo-image' import Animated, { - Easing, interpolate, runOnJS, useAnimatedStyle, useSharedValue, withTiming, + Easing, } from 'react-native-reanimated' +import MaskedView from '@react-native-masked-view/masked-view' import {useSafeAreaInsets} from 'react-native-safe-area-context' import Svg, {Path, SvgProps} from 'react-native-svg' -import {Image} from 'expo-image' -import * as SplashScreen from 'expo-splash-screen' -import MaskedView from '@react-native-masked-view/masked-view' import {isAndroid} from '#/platform/detection' import {Logotype} from '#/view/icons/Logotype' + // @ts-ignore import splashImagePointer from '../assets/splash.png' // @ts-ignore @@ -183,8 +184,6 @@ export function Splash(props: React.PropsWithChildren) { // special off-spec color for dark mode const logoBg = isDarkMode ? '#0F1824' : '#fff' - return props.children - return ( {!isAnimationComplete && (