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 1.7.0 to 1.8.0

9

index.js

@@ -51,2 +51,3 @@ import React, { PureComponent } from 'react'

}),
bounceDelay: PropTypes.number,
shouldAnimateTreshold: PropTypes.number,

@@ -72,2 +73,3 @@ disabled: PropTypes.bool,

bouncePadding: undefined,
bounceDelay: 0,
shouldAnimateTreshold: 0,

@@ -203,3 +205,3 @@ disabled: false,

animateBounce = () => {
const {duration, marqueeDelay, loop, isInteraction, useNativeDriver, easing, bounceSpeed, bouncePadding, isRTL} = this.props
const {duration, marqueeDelay, loop, isInteraction, useNativeDriver, easing, bounceSpeed, bouncePadding, bounceDelay, isRTL} = this.props
const rtl = isRTL ?? I18nManager.isRTL;

@@ -222,3 +224,4 @@ const bounceEndPadding = rtl ? bouncePadding?.left : bouncePadding?.right;

isInteraction: isInteraction,
useNativeDriver: useNativeDriver
useNativeDriver: useNativeDriver,
delay: bounceDelay
})

@@ -233,3 +236,3 @@ ]).start(({finished}) => {

})
}, this.hasFinishedFirstLoop ? 0 : marqueeDelay)
}, this.hasFinishedFirstLoop ? bounceDelay > 0 ? bounceDelay : 0 : marqueeDelay)
}

@@ -236,0 +239,0 @@

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

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

@@ -87,2 +87,3 @@ # react-native-text-ticker

| bouncePadding | `{ left: number, right: number }` | true | - | The padding on start/end positions of bounce.
| bounceDelay | number | true | 0 | How long the animation should wait after each bounce before starting again.
| easing | function | true | Easing.ease | How the text scrolling animates. Additional options available from the [Easing module](https://facebook.github.io/react-native/docs/easing.html)

@@ -89,0 +90,0 @@ | shouldAnimateTreshold | number | true | 0 | If you have a view drawn over the text at the right (a fade-out gradient for instance) this should be set to the width of the overlaying view: ![examples](./example/media/example2.gif)

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