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 = (