Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useNativeDriver #191

Open
DonavanMartin opened this issue Apr 1, 2020 · 3 comments
Open

useNativeDriver #191

DonavanMartin opened this issue Apr 1, 2020 · 3 comments

Comments

@DonavanMartin
Copy link

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

@roshnet
Copy link

roshnet commented Sep 25, 2020

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

@cc-matthias-m
Copy link

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;
      });

@jarod-legault
Copy link
Contributor

Looks like this was fixed in #222.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants