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

useNativeDriver

Open DonavanMartin opened this issue 5 years ago • 3 comments

Can not set "useNativeDriver" property. Capture d’écran, le 2020-03-31 à 20 37 51 Capture d’écran, le 2020-03-31 à 20 47 41

DonavanMartin avatar Apr 01 '20 00:04 DonavanMartin

@DonavanMartin Hi, in the standard example, I removed all the Animation stuff. The list items scroll perfectly (except for the removed styling ofc). I still the same warning about useNativeDriver. Any ideas to avoid it would be appreciated.

roshnet avatar Sep 25 '20 08:09 roshnet

The warning come from the library it self.

On the file: 'react-native-sortable-list/src/Row.js' at line 197 :

Animated.timing(this._animatedLocation, {
        toValue: nextLocation,
        duration: 300,
      }).start(() => {
        this._isAnimationRunning = false;
      });

We should add useNativeDriver at false here. NativeDrivver set at true give me some crash on my test.

Animated.timing(this._animatedLocation, {
        toValue: nextLocation,
        duration: 300,
        useNativeDriver: false,
      }).start(() => {
        this._isAnimationRunning = false;
      });

cc-matthias-m avatar Nov 04 '20 11:11 cc-matthias-m

Looks like this was fixed in #222.

jarod-legault avatar Jun 10 '21 19:06 jarod-legault