bartgryszko / react-native-circular-progress

React Native component for creating animated, circular progress with ReactART
MIT License
2.13k stars 424 forks source link

fix warning of useNativeDriver #301

Open shixiaoquan opened 2 years ago

shixiaoquan commented 2 years ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-circular-progress@1.3.3 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-circular-progress/src/AnimatedCircularProgress.js b/node_modules/react-native-circular-progress/src/AnimatedCircularProgress.js
index d57de9b..2db5fac 100644
--- a/node_modules/react-native-circular-progress/src/AnimatedCircularProgress.js
+++ b/node_modules/react-native-circular-progress/src/AnimatedCircularProgress.js
@@ -40,6 +40,7 @@ export default class AnimatedCircularProgress extends React.PureComponent {
       toValue,
       easing,
       duration,
+      useNativeDriver: false,
     });
     anim.start(this.props.onAnimationComplete);

This issue body was partially generated by patch-package.