react-native-progress-bar-animated icon indicating copy to clipboard operation
react-native-progress-bar-animated copied to clipboard

Set native driver to false.

Open johfarrell opened this issue 4 years ago • 5 comments

(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.

johfarrell avatar Sep 02 '20 03:09 johfarrell

I encountered this as well. It seems that it hasn't yet been changed in the repo. Thanks.

jtalz avatar Oct 28 '20 18:10 jtalz

So, any update for this warning issue?

MasIzzudin avatar Dec 30 '20 19:12 MasIzzudin

The repo owner haven't merge my work yet. Still waiting for response

johfarrell avatar Dec 31 '20 07:12 johfarrell

@rafaelmotta Please merge this one.

denisvely avatar Aug 20 '21 12:08 denisvely

Hi just as a quick fix you can create this file as patches/react-native-progress-bar-animated+1.0.6.patch in your root repo dir and set it's value to

diff --git a/node_modules/react-native-progress-bar-animated/src/AnimatedProgressBar.js b/node_modules/react-native-progress-bar-animated/src/AnimatedProgressBar.js
index 8ba19be..4963b58 100644
--- a/node_modules/react-native-progress-bar-animated/src/AnimatedProgressBar.js
+++ b/node_modules/react-native-progress-bar-animated/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();
   }

then run yarn patch-package to fix that.

You can also add to you package.json for a more automatic workflow:

 "scripts": {
+  "postinstall": "patch-package"
 }

itamarbareket avatar Nov 05 '21 21:11 itamarbareket