react-native-text-ticker
Advanced tools
Comparing version 0.16.0 to 0.17.0
10
index.js
@@ -81,2 +81,8 @@ import React, { PureComponent } from 'react' | ||
componentDidUpdate(prevProps) { | ||
if (this.props.children !== prevProps.children) { | ||
this.resetScroll() | ||
} | ||
} | ||
componentWillUnmount() { | ||
@@ -243,3 +249,3 @@ this.stopAnimation(); | ||
onScroll = () => { | ||
resetScroll = () => { | ||
this.clearTimeout() | ||
@@ -271,3 +277,3 @@ this.setState({ isScrolling: true }) | ||
scrollEventThrottle={16} | ||
onScroll={this.onScroll} | ||
onScroll={this.resetScroll} | ||
showsHorizontalScrollIndicator={false} | ||
@@ -274,0 +280,0 @@ style={StyleSheet.absoluteFillObject} |
{ | ||
"name": "react-native-text-ticker", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"description": "React Native Text Ticker/Marquee Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15047
294