Skip to content

Commit

Permalink
Update useCellTranslate.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 1c56e92 commit ef4e35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCellTranslate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function useCellTranslate({ cellIndex, cellSize, cellOffset }: Params) {
? activeCellSize.value * (isAfterActive ? -1 : 1)
: 0;

return withSpring(translationAmt, animationConfigRef.current);
return withSpring(translationAmt, animationConfigRef.value);
}, [activeKey, cellIndex]);

return translate;
Expand Down

0 comments on commit ef4e35b

Please sign in to comment.