From a6891632f0339d40c96fb3d17fb884a142183564 Mon Sep 17 00:00:00 2001 From: Rinor Dreshaj <10086015+RinorDreshaj@users.noreply.github.com> Date: Wed, 30 Sep 2020 11:09:57 +0200 Subject: [PATCH] Update AnimatedEllipsis.js useNativeDriver is causing a lot of warning, This commit it suppresses these warnings. --- src/AnimatedEllipsis.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AnimatedEllipsis.js b/src/AnimatedEllipsis.js index 6ce7bbf..aa222ad 100644 --- a/src/AnimatedEllipsis.js +++ b/src/AnimatedEllipsis.js @@ -9,12 +9,14 @@ export default class AnimatedEllipsis extends Component { animationDelay: PropTypes.number, minOpacity: PropTypes.number, style: Text.propTypes.style, + useNativeDriver: PropTypes.bool }; static defaultProps = { numberOfDots: 3, animationDelay: 300, minOpacity: 0, + useNativeDriver: true, style: { color: '#aaa', fontSize: 32, @@ -66,6 +68,7 @@ export default class AnimatedEllipsis extends Component { Animated.timing(this._animation_state.dot_opacities[which_dot], { toValue: this._animation_state.target_opacity, duration: this.props.animationDelay, + useNativeDriver: this.props.useNativeDriver, }).start(this.animate_dots.bind(this, next_dot)); } @@ -85,4 +88,4 @@ const styles = StyleSheet.create({ container: { flexDirection: 'row' } -}); \ No newline at end of file +});