From 32741a77a3a095ea421b39c8188b12b416f18360 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Thu, 2 Oct 2025 23:24:53 +0200 Subject: [PATCH 1/2] Enable reanimated/rn feature flags to allow accurate scroll events tracking --- app.config.ts | 12 +++++++++++- package.json | 5 +++++ src/app/(tabs)/(calendar)/index.tsx | 4 +--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app.config.ts b/app.config.ts index 30d9949..2148f71 100644 --- a/app.config.ts +++ b/app.config.ts @@ -79,7 +79,17 @@ const config: ExpoConfig = { owner: EAS_APP_OWNER, plugins: [ "expo-asset", - "expo-build-properties", + [ + "expo-build-properties", + { + android: { + reactNativeReleaseLevel: "experimental", + }, + ios: { + reactNativeReleaseLevel: "experimental", + }, + }, + ], "expo-web-browser", "expo-router", [ diff --git a/package.json b/package.json index 8f23e5b..8b83206 100644 --- a/package.json +++ b/package.json @@ -87,5 +87,10 @@ "react-native-screens@4.16.0": "patches/react-native-screens@4.16.0.patch", "expo-router@6.0.6": "patches/expo-router@6.0.6.patch", "@expo/ui@0.2.0-beta.3": "patches/@expo%2Fui@0.2.0-beta.3.patch" + }, + "reanimated": { + "staticFeatureFlags": { + "DISABLE_COMMIT_PAUSING_MECHANISM": true + } } } diff --git a/src/app/(tabs)/(calendar)/index.tsx b/src/app/(tabs)/(calendar)/index.tsx index 75f64ff..14576e7 100644 --- a/src/app/(tabs)/(calendar)/index.tsx +++ b/src/app/(tabs)/(calendar)/index.tsx @@ -28,7 +28,7 @@ import { type CurrentlyLiveSession, } from "@/components/CurrentlyLive"; -const AnimatedFlatList = Animated.createAnimatedComponent(FlatList) as FlatList; +const AnimatedFlatList = Animated.FlatList; const HEADER_SCROLL_OFFSET = isLiquidGlassAvailable() ? 110 : 90; @@ -50,8 +50,6 @@ export default function Schedule() { [0, HEADER_SCROLL_OFFSET], Extrapolation.CLAMP, ); - - isScrolledDown.value = event.contentOffset.y > 10; }); const stickyHeaderStyle = useAnimatedStyle(() => { From d5fd30143039b283c675c7c9263f48f79ec2d146 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Thu, 2 Oct 2025 23:26:48 +0200 Subject: [PATCH 2/2] Revert unwanted change --- src/app/(tabs)/(calendar)/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/(tabs)/(calendar)/index.tsx b/src/app/(tabs)/(calendar)/index.tsx index 14576e7..c3cdeec 100644 --- a/src/app/(tabs)/(calendar)/index.tsx +++ b/src/app/(tabs)/(calendar)/index.tsx @@ -50,6 +50,8 @@ export default function Schedule() { [0, HEADER_SCROLL_OFFSET], Extrapolation.CLAMP, ); + + isScrolledDown.value = event.contentOffset.y > 10; }); const stickyHeaderStyle = useAnimatedStyle(() => {