Revert "Revert "temporarily disable splash""
This reverts commit 8b5bd0ffed.
This commit is contained in:
+9
-8
@@ -1,28 +1,27 @@
|
|||||||
import React, {useCallback, useEffect} from 'react'
|
import React, {useCallback, useEffect} from 'react'
|
||||||
import {
|
import {
|
||||||
View,
|
|
||||||
StyleSheet,
|
|
||||||
Image as RNImage,
|
|
||||||
AccessibilityInfo,
|
AccessibilityInfo,
|
||||||
|
Image as RNImage,
|
||||||
|
StyleSheet,
|
||||||
useColorScheme,
|
useColorScheme,
|
||||||
|
View,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import * as SplashScreen from 'expo-splash-screen'
|
|
||||||
import {Image} from 'expo-image'
|
|
||||||
import Animated, {
|
import Animated, {
|
||||||
|
Easing,
|
||||||
interpolate,
|
interpolate,
|
||||||
runOnJS,
|
runOnJS,
|
||||||
useAnimatedStyle,
|
useAnimatedStyle,
|
||||||
useSharedValue,
|
useSharedValue,
|
||||||
withTiming,
|
withTiming,
|
||||||
Easing,
|
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
import MaskedView from '@react-native-masked-view/masked-view'
|
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import Svg, {Path, SvgProps} from 'react-native-svg'
|
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 {isAndroid} from '#/platform/detection'
|
||||||
import {Logotype} from '#/view/icons/Logotype'
|
import {Logotype} from '#/view/icons/Logotype'
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import splashImagePointer from '../assets/splash.png'
|
import splashImagePointer from '../assets/splash.png'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@@ -184,6 +183,8 @@ export function Splash(props: React.PropsWithChildren<Props>) {
|
|||||||
// special off-spec color for dark mode
|
// special off-spec color for dark mode
|
||||||
const logoBg = isDarkMode ? '#0F1824' : '#fff'
|
const logoBg = isDarkMode ? '#0F1824' : '#fff'
|
||||||
|
|
||||||
|
return props.children
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{flex: 1}} onLayout={onLayout}>
|
<View style={{flex: 1}} onLayout={onLayout}>
|
||||||
{!isAnimationComplete && (
|
{!isAnimationComplete && (
|
||||||
|
|||||||
Reference in New Issue
Block a user