Skip to main content

Marquee

Marquee component for sliding text
(code example)

Usage​

Live Editor
<Marquee
  key={`${index}`}
  label={'Hey there'}
  direction={directionHorizontal ? MarqueeDirections.LEFT : MarqueeDirections.RIGHT}
  duration={duration}
  numberOfReps={numOfReps}
  containerStyle={styles.containerStyle}
/>
Result
Loading...

API​

containerStyle​

Custom container style ViewProps['style']

direction​

Marquee direction MarqueeDirections

duration​

Marquee animation duration number

label​

Marquee label string

labelStyle​

Marquee label style TextProps['style']

numberOfReps​

Marquee animation number of repetitions number