react-native-sortable-list icon indicating copy to clipboard operation
react-native-sortable-list copied to clipboard

Warning about `useNativeDriver` option

Open Odame opened this issue 4 years ago • 1 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for a project I'm working on.

There's an annoying warning that pops up each time items in the list are dragged to reorder.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-sortable-list/src/Row.js b/node_modules/react-native-sortable-list/src/Row.js
index 32718a8..21d3c5f 100644
--- a/node_modules/react-native-sortable-list/src/Row.js
+++ b/node_modules/react-native-sortable-list/src/Row.js
@@ -197,6 +197,7 @@ export default class Row extends Component {
       Animated.timing(this._animatedLocation, {
         toValue: nextLocation,
         duration: 300,
+        useNativeDriver: false,
       }).start(() => {
         this._isAnimationRunning = false;
       });

This issue body was partially generated by patch-package.

Odame avatar Dec 03 '21 07:12 Odame

Great, that worked for me

DanielMartinezSebastian avatar Aug 16 '23 17:08 DanielMartinezSebastian