Skip to content

Commit c10575d

Browse files
authored
Fix circular refference with Reanimated 3 (#462)
1 parent ebfddc4 commit c10575d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/context/animatedValueContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ function useSetupAnimatedValues<T>() {
133133
);
134134
}, []);
135135

136+
const dragItemOverflow = props.dragItemOverflow;
136137
const hoverAnim = useDerivedValue(() => {
137138
if (activeIndexAnim.value < 0) return 0;
138-
return props.dragItemOverflow
139+
return dragItemOverflow
139140
? touchPositionDiff.value
140141
: touchPositionDiffConstrained.value;
141142
}, []);

0 commit comments

Comments
 (0)