Skip to content

Commit b3d8fd9

Browse files
Fix ReanimatedSwipeable reanimated warnings (#3365)
## Description Fix - WARN [Reanimated] Reading from `value` during component render. in react-native-gesture-handler version 2.22.1 This warning appear when you use Swipeable component. Change : in src/components/ReanimatedSwipeable.tsx replace rowWidth.value to rowWidth in the dependency array of updateElementWidths callback. #3170 #3320 ## Test plan Tested on Samsung Galaxy A52, android emulator and Iphone 13
1 parent e30cc63 commit b3d8fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ReanimatedSwipeable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ const Swipeable = forwardRef<SwipeableMethods, SwipeableProps>(
466466
rightLayoutRef,
467467
leftWidth,
468468
rightWidth,
469-
rowWidth.value,
469+
rowWidth,
470470
]);
471471

472472
const swipeableMethods = useMemo<SwipeableMethods>(

0 commit comments

Comments
 (0)