From 125bed07a58f77bf77e8e9d2b3cd77686d5726f8 Mon Sep 17 00:00:00 2001 From: Michiel Leunens Date: Mon, 15 Sep 2025 15:28:36 +0200 Subject: [PATCH 1/2] Update constants.ts With the latest react-native-reanimated version, and expo sdk 54 (new arch), I got a ts compile error from this library tsc --build --noEmit error TS2694: Namespace '"/Users/michielleunens/Documents/code/allride_app/node_modules/react-native-reanimated/lib/typescript/Animated"' has no exported member 'EasingFunction' I've updated the import locally like this and I was able to compile again --- src/constants.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 41591325..1074603b 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,6 +1,5 @@ import { Dimensions, Platform } from 'react-native'; -import type Animated from 'react-native-reanimated'; -import { Easing } from 'react-native-reanimated'; +import { Easing, EasingFunction } from 'react-native-reanimated'; import type { SpringConfig, TimingConfig } from './types'; const { height: WINDOW_HEIGHT, width: WINDOW_WIDTH } = Dimensions.get('window'); From cad6a92ea8fc99635913c428d2546830c0857292 Mon Sep 17 00:00:00 2001 From: Michiel Leunens Date: Mon, 15 Sep 2025 17:13:47 +0200 Subject: [PATCH 2/2] Update constants.ts --- src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 1074603b..e058815e 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -68,7 +68,7 @@ enum SNAP_POINT_TYPE { DYNAMIC = 1, } -const ANIMATION_EASING: Animated.EasingFunction = Easing.out(Easing.exp); +const ANIMATION_EASING: EasingFunction = Easing.out(Easing.exp); const ANIMATION_DURATION = 250; const ANIMATION_CONFIGS = Platform.select({