react-native-swipeable icon indicating copy to clipboard operation
react-native-swipeable copied to clipboard

Animated: `useNativeDriver` was not specified.

Open chakafasano88 opened this issue 2 years ago • 1 comments

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()

chakafasano88 avatar Dec 06 '23 20:12 chakafasano88

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

Ankur-Float avatar Dec 14 '23 20:12 Ankur-Float