react-native-text-ticker
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -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) |
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
20477
416
104