Revert "Revert "temporarily disable splash""

This reverts commit 8b5bd0ffed.
This commit is contained in:
Hailey
2024-08-04 20:50:07 -07:00
parent cddb328529
commit 862fdfcba4
+9 -8
View File
@@ -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<Props>) {
// special off-spec color for dark mode
const logoBg = isDarkMode ? '#0F1824' : '#fff'
return props.children
return (
<View style={{flex: 1}} onLayout={onLayout}>
{!isAnimationComplete && (