Skip to content

[FEATURE] Add autoStart prop to Marquee component#20

Open
SashaYursa wants to merge 1 commit into
animate-react-native:mainfrom
SashaYursa:main
Open

[FEATURE] Add autoStart prop to Marquee component#20
SashaYursa wants to merge 1 commit into
animate-react-native:mainfrom
SashaYursa:main

Conversation

@SashaYursa
Copy link
Copy Markdown

Changes

Added autoStart prop to control whether the marquee animation starts automatically on mount.

Motivation

On Android, the marquee animation causes jank during React Navigation screen transitions. Setting autoStart={false} allows delaying the animation start until the transition is complete.

Usage

<Marquee autoStart={false} ref={marqueeRef}>
  <Text>Long text here</Text>
</Marquee>

// Start manually after delay
setTimeout(() => marqueeRef.current?.start(), 1000)

Default behavior

autoStart defaults to true, so existing usage is not affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants