1.0.5 • Published 2 years ago

react-native-marquee-view v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Native Marquee View

npm version npm.io npm.io npm.io npm.io

Help you auto scroll content

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

PropDescriptionDefault
styleView style_
speedSpeed0.1
delayDelay time before start auto scroll animation (ms).0
autoPlayAuto start when it's mounttrue
playingYou 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