From 49bd1f301e4e38296b7775f660146f75102aacdf Mon Sep 17 00:00:00 2001 From: Arthur Kim <81060569+dmk3141618@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:59:58 +0900 Subject: [PATCH] Update DraggableFlatList.tsx [Reanimated] Tried to modify key `current` of an object which has been already passed to a worklet https://github.com/computerjazz/react-native-draggable-flatlist/issues/539 --- src/components/DraggableFlatList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DraggableFlatList.tsx b/src/components/DraggableFlatList.tsx index d7d98c27..ff3dd2f2 100644 --- a/src/components/DraggableFlatList.tsx +++ b/src/components/DraggableFlatList.tsx @@ -294,8 +294,8 @@ function DraggableFlatListInner(props: DraggableFlatListProps) { runOnJS(onRelease)(activeIndexAnim.value); const springTo = placeholderOffset.value - activeCellOffset.value; touchTranslate.value = withSpring( - springTo, - animationConfigRef.current, + springTo, + animationConfigRef.value, () => { runOnJS(onDragEnd)({ from: activeIndexAnim.value,