From 790c36b0b75277caa25ec607844e3145403e3110 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 28 May 2026 12:47:09 +0300 Subject: [PATCH] rm absoluteFillObject --- src/Splash.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Splash.tsx b/src/Splash.tsx index a8b6020ffe..efee1f6e35 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -2,20 +2,19 @@ import {forwardRef, useCallback, useEffect, useState} from 'react' import { AccessibilityInfo, Image as RNImage, - StyleSheet, useColorScheme, View, } from 'react-native' import Animated, { Easing, interpolate, - runOnJS, useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' import Svg, {Path, type SvgProps} from 'react-native-svg' +import {scheduleOnRN} from 'react-native-worklets' import {Image} from 'expo-image' import * as SplashScreen from 'expo-splash-screen' @@ -152,9 +151,7 @@ export function Splash(props: React.PropsWithChildren) { withTiming( 1, {duration: 1200, easing: Easing.in(Easing.cubic)}, - () => { - runOnJS(onFinish)() - }, + () => scheduleOnRN(onFinish), ), ) outroApp.set(() => @@ -178,7 +175,7 @@ export function Splash(props: React.PropsWithChildren) { }, [onFinish, intro, outroLogo, outroApp, outroAppOpacity, isReady]) useEffect(() => { - AccessibilityInfo.isReduceMotionEnabled().then(setReduceMotion) + void AccessibilityInfo.isReduceMotionEnabled().then(setReduceMotion) }, []) const logoAnimations = @@ -189,12 +186,12 @@ export function Splash(props: React.PropsWithChildren) { return ( {!isAnimationComplete && ( - +