From de7f4561119a3c0072e21fb2daa029344dc1c91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Wed, 26 Aug 2026 10:41:21 +0200 Subject: [PATCH] Update Reaniamted hooks dependencies --- .../src/components/ReanimatedDrawerLayout.tsx | 2 +- .../components/ReanimatedSwipeable/ReanimatedSwipeable.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx b/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx index 375d0bfb04..63719c1431 100644 --- a/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx +++ b/packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx @@ -343,7 +343,7 @@ const DrawerLayout = function DrawerLayout( useDerivedValue(() => { onDrawerSlide && scheduleOnRN(onDrawerSlide, openValue.value); - }, []); + }); const isDrawerOpen = useSharedValue(false); diff --git a/packages/react-native-gesture-handler/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx b/packages/react-native-gesture-handler/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx index 4881db1dc7..5fe378f04d 100644 --- a/packages/react-native-gesture-handler/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +++ b/packages/react-native-gesture-handler/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx @@ -6,7 +6,7 @@ import React, { useMemo, } from 'react'; import type { LayoutChangeEvent } from 'react-native'; -import { I18nManager, StyleSheet, View } from 'react-native'; +import { I18nManager, Platform, StyleSheet, View } from 'react-native'; import Animated, { interpolate, isSharedValue, @@ -576,7 +576,7 @@ const Swipeable = (props: SwipeableProps) => { transform: [{ translateX: appliedTranslation.value }], pointerEvents: rowState.value === 0 ? 'auto' : 'box-only', }), - [appliedTranslation, rowState] + Platform.OS === 'web' ? [appliedTranslation, rowState] : undefined ); const swipeableComponent = (