From 862fdfcba45cb7a18423ec89b076a17a9ef3eab2 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 4 Aug 2024 20:50:07 -0700 Subject: [PATCH] Revert "Revert "temporarily disable splash"" This reverts commit 8b5bd0ffed78667ac06be062e4ae44e6c66d63e9. --- src/Splash.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Splash.tsx b/src/Splash.tsx index 42a21c0839..561dea98c8 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -1,28 +1,27 @@ import React, {useCallback, useEffect} from 'react' import { - View, - StyleSheet, - Image as RNImage, AccessibilityInfo, + Image as RNImage, + StyleSheet, useColorScheme, + View, } 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 @@ -184,6 +183,8 @@ export function Splash(props: React.PropsWithChildren) { // special off-spec color for dark mode const logoBg = isDarkMode ? '#0F1824' : '#fff' + return props.children + return ( {!isAnimationComplete && (