From 49aacc2f6b1dba672448579411fad61615a228f5 Mon Sep 17 00:00:00 2001 From: Sasha Yursa Date: Mon, 18 May 2026 19:11:02 +0300 Subject: [PATCH] fix: ensure autoStart defaults to true in MarqueeProps --- src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 98a2027..add5812 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -23,6 +23,7 @@ export type MarqueeProps = React.PropsWithChildren<{ direction?: MarqueeDirection; position?: SharedValue; withGesture?: boolean; + autoStart?: boolean; }>; export type MarqueeRef = { @@ -88,6 +89,7 @@ export const Marquee = React.memo( direction = 'horizontal', position, withGesture = true, + autoStart = true, }, ref ) => { @@ -120,7 +122,7 @@ export const Marquee = React.memo( } else { anim.value += speed * frameDelta; } - }, true); + }, autoStart); useDerivedValue(() => { if (position) {