Skip to content

Commit

Permalink
Update DraggableFlatList.tsx
Browse files Browse the repository at this point in the history
[Reanimated] Tried to modify key `current` of an object which has been already passed to a worklet

computerjazz#539
  • Loading branch information
dmk3141618 authored Dec 5, 2024
1 parent 3061e30 commit 49bd1f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DraggableFlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ function DraggableFlatListInner<T>(props: DraggableFlatListProps<T>) {
runOnJS(onRelease)(activeIndexAnim.value);
const springTo = placeholderOffset.value - activeCellOffset.value;
touchTranslate.value = withSpring(
springTo,
animationConfigRef.current,
springTo,
animationConfigRef.value,
() => {
runOnJS(onDragEnd)({
from: activeIndexAnim.value,
Expand Down

0 comments on commit 49bd1f3

Please sign in to comment.