react-native-text-ticker
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -26,2 +26,3 @@ import React, { PureComponent } from 'react' | ||
marqueeDelay: PropTypes.number, | ||
isInteraction: PropTypes.bool, | ||
useNativeDriver: PropTypes.bool, | ||
@@ -44,2 +45,3 @@ onMarqueeComplete: PropTypes.func, | ||
marqueeDelay: 0, | ||
isInteraction: true, | ||
useNativeDriver: true, | ||
@@ -88,2 +90,3 @@ repeatSpacer: 50, | ||
loop, | ||
isInteraction, | ||
useNativeDriver, | ||
@@ -100,2 +103,3 @@ repeatSpacer, | ||
easing: easing, | ||
isInteraction: isInteraction, | ||
useNativeDriver: useNativeDriver | ||
@@ -117,3 +121,3 @@ }).start(({ finished }) => { | ||
animateBounce = () => { | ||
const {duration, marqueeDelay, loop, useNativeDriver, easing, children} = this.props | ||
const {duration, marqueeDelay, loop, isInteraction, useNativeDriver, easing, children} = this.props | ||
this.setTimeout(() => { | ||
@@ -125,2 +129,3 @@ Animated.sequence([ | ||
easing: easing, | ||
isInteraction: isInteraction, | ||
useNativeDriver: useNativeDriver | ||
@@ -132,2 +137,3 @@ }), | ||
easing: easing, | ||
isInteraction: isInteraction, | ||
useNativeDriver: useNativeDriver | ||
@@ -134,0 +140,0 @@ }) |
{ | ||
"name": "react-native-text-ticker", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "React Native Text Ticker/Marquee Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,2 +57,3 @@ # react-native-text-ticker | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
@@ -74,2 +75,3 @@ }); | ||
| onMarqueeComplete | function | true | - | This function will run after the text has completely passed across the screen. Will run repeatedly if `loop` is enabled. | ||
| isInteraction | boolean | true | true | Whether or not animations create an interaction handle on the `InteractionManager`. Disable if you are having issues with VirtualizedLists not rendering properly. | ||
| useNativeDriver | boolean | true | true | Use native animation driver, should remain true for large majority of use-cases | ||
@@ -76,0 +78,0 @@ | repeatSpacer | number | true | 50 | The space between the end of your text string ticker and the beginning of it starting again. |
13428
266
90