From 1720eef5c45047bba9501ea6980111a6a2a2b7f2 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 31 Jan 2024 15:01:07 -0600 Subject: New splash screen (#2714) * New splash screen * Add logotype to splash * Adjust spacing --- src/Splash.tsx | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) (limited to 'src/Splash.tsx') diff --git a/src/Splash.tsx b/src/Splash.tsx index bb2c7a175..99f9a100d 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -21,8 +21,8 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context' import Svg, {Path, SvgProps} from 'react-native-svg' import {isAndroid} from '#/platform/detection' -import {useColorMode} from 'state/shell' -import {colors} from '#/lib/styles' +import {useColorMode} from '#/state/shell' +import {Logotype} from '#/view/icons/Logotype' // @ts-ignore import splashImagePointer from '../assets/splash.png' @@ -98,6 +98,11 @@ export function Splash(props: React.PropsWithChildren) { opacity: interpolate(intro.value, [0, 1], [0, 1], 'clamp'), } }) + const bottomLogoAnimation = useAnimatedStyle(() => { + return { + opacity: interpolate(intro.value, [0, 1], [0, 1], 'clamp'), + } + }) const reducedLogoAnimation = useAnimatedStyle(() => { return { transform: [ @@ -183,12 +188,30 @@ export function Splash(props: React.PropsWithChildren) { return ( {!isAnimationComplete && ( - + + + + + + + )} {isReady && @@ -212,7 +235,7 @@ export function Splash(props: React.PropsWithChildren) { }, ]}> @@ -233,17 +256,14 @@ export function Splash(props: React.PropsWithChildren) { transform: [{translateY: -(insets.top / 2)}, {scale: 0.1}], // scale from 1000px to 100px }, ]}> - + }> {!isAnimationComplete && ( )} -- cgit 1.4.1