Skip to content

minhchienwikipedia/react-native-marquee-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Marquee View

npm version

Help you auto scroll content


fateh999




Demo

Getting started

npm install react-native-marquee-view --save
  • OR
yarn add react-native-marquee-view

Usage

import MarqueeView from 'react-native-marquee-view';

<MarqueeView
	style={{
		backgroundColor: 'blue',
		width: 200,
	}}>
	<View style={{ backgroundColor: 'red' }}>
		<Text>This is demo content</Text>
	</View>
</MarqueeView>

Properties

Prop Description Default
style View style _
speed Speed 0.1
delay Delay time before start auto scroll animation (ms). 0
autoPlay Auto start when it's mount true
playing You can put state value to this prop to handle play/stop depend on value _

Method:

  • start: Start animation
  • stop: Reset animation

More

This package inspired by https://github.com/homielab/react-native-auto-scroll

License

This module is MIT licensed


About

React Native Marquee View

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published