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