From 46091e5fc7c8cfb433078328deae45446b15b07b Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Wed, 29 Jul 2026 23:04:06 +0200 Subject: [PATCH] Migrate away from `StyleSheet.absoluteFill` and `StyleSheet.absoluteFillObject` --- src/Splash.tsx | 9 +++++---- src/features/inviteFriends/InviteScannerScreen.tsx | 6 +++--- src/lib/custom-animations/GestureActionView.tsx | 6 +++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Splash.tsx b/src/Splash.tsx index b450a2ddcd..6e4f86ace4 100644 --- a/src/Splash.tsx +++ b/src/Splash.tsx @@ -2,7 +2,6 @@ import {forwardRef, useCallback, useEffect, useState} from 'react' import { AccessibilityInfo, Image as RNImage, - StyleSheet, useColorScheme, View, } from 'react-native' @@ -20,6 +19,7 @@ import {Image} from 'expo-image' import * as SplashScreen from 'expo-splash-screen' import {Logotype} from '#/view/icons/Logotype' +import {atoms as a} from '#/alf' // @ts-ignore import splashImagePointer from '../assets/splash/splash.png' // @ts-ignore @@ -170,12 +170,12 @@ export function Splash(props: React.PropsWithChildren) { return ( {!isAnimationComplete && ( - + ) { {!isAnimationComplete && ( diff --git a/src/lib/custom-animations/GestureActionView.tsx b/src/lib/custom-animations/GestureActionView.tsx index d70a1546fc..de4dd5d0fa 100644 --- a/src/lib/custom-animations/GestureActionView.tsx +++ b/src/lib/custom-animations/GestureActionView.tsx @@ -1,5 +1,5 @@ import {useMemo, useState} from 'react' -import {type ColorValue, Dimensions, StyleSheet, View} from 'react-native' +import {type ColorValue, Dimensions, View} from 'react-native' import {Gesture, GestureDetector} from 'react-native-gesture-handler' import Animated, { clamp, @@ -16,6 +16,7 @@ import Animated, { import {scheduleOnRN} from 'react-native-worklets' import {useHaptics} from '#/lib/haptics' +import {atoms as a} from '#/alf' import {type GestureActions} from './GestureActionView.shared' const MAX_WIDTH = Dimensions.get('screen').width @@ -287,8 +288,7 @@ export function GestureActionView({ return ( - +