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

Animated: useNativeDriver was not specified. #136

Open
chakafasano88 opened this issue Dec 6, 2023 · 1 comment
Open

Animated: useNativeDriver was not specified. #136

chakafasano88 opened this issue Dec 6, 2023 · 1 comment

Comments

@chakafasano88
Copy link

Receiving a warning when I swipe my listitem. Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false. This occurs when you are using an animation and not setting the native driver to true or false. Can you please update?

For example:

Animated.timing(animationState, { toValue: 1, duration: 250, useNativeDriver: true }).start()

@Ankur-Float
Copy link

I solved this by adding the patch to following line in react-native-swipeable/lib/index.js
useNativeDriver : true
Screenshot 2023-12-14 at 3 07 34 PM

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

2 participants