Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-text-ticker

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-text-ticker - npm Package Compare versions

Comparing version 0.17.0 to 0.18.0

34

index.js

@@ -113,19 +113,23 @@ import React, { PureComponent } from 'react'

this.setTimeout(() => {
Animated.timing(this.animatedValue, {
toValue: -this.textWidth - repeatSpacer,
duration: duration || children.length * 150,
easing: easing,
isInteraction: isInteraction,
useNativeDriver: useNativeDriver
}).start(({ finished }) => {
if (finished) {
if (onMarqueeComplete) {
onMarqueeComplete()
const scrollToValue = -this.textWidth - repeatSpacer
if(!isNaN(scrollToValue)) {
Animated.timing(this.animatedValue, {
toValue: scrollToValue,
duration: duration || children.length * 150,
easing: easing,
isInteraction: isInteraction,
useNativeDriver: useNativeDriver
}).start(({ finished }) => {
if (finished) {
if (onMarqueeComplete) {
onMarqueeComplete()
}
if (loop) {
this.animatedValue.setValue(0)
this.animateScroll()
}
}
if (loop) {
this.animatedValue.setValue(0)
this.animateScroll()
}
})} else {
this.start()
}
})
}, marqueeDelay)

@@ -132,0 +136,0 @@ }

{
"name": "react-native-text-ticker",
"version": "0.17.0",
"version": "0.18.0",
"description": "React Native Text Ticker/Marquee Component",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc