From ac09562e9b753ec4b2922e9559f75a6783f9d20c Mon Sep 17 00:00:00 2001 From: Johannes Farrell <55581148+johfarrell@users.noreply.github.com> Date: Wed, 2 Sep 2020 10:07:15 +0700 Subject: [PATCH] Set native driver to false. (WARN `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`) lead to random force close and apps reload in some cases. --- src/AnimatedProgressBar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AnimatedProgressBar.js b/src/AnimatedProgressBar.js index 0c5f943..91a4233 100644 --- a/src/AnimatedProgressBar.js +++ b/src/AnimatedProgressBar.js @@ -61,6 +61,7 @@ class ProgressBar extends React.Component { easing: Easing[this.props.barEasing], toValue: toValue > 0 ? toValue : 0, duration: this.props.barAnimationDuration, + useNativeDriver: false }).start(); } @@ -68,6 +69,7 @@ class ProgressBar extends React.Component { Animated.timing(this.backgroundAnimation, { toValue: 1, duration: this.props.backgroundAnimationDuration, + useNativeDriver: false }).start(); } @@ -94,6 +96,7 @@ class ProgressBar extends React.Component { width: this.widthAnimation, backgroundColor: this.backgroundInterpolationValue || this.props.backgroundColor, borderRadius: this.props.borderRadius, + useNativeDriver: false }} />