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

React Native warning Animated: 'useNativeDriver'

Open Girum opened this issue 3 years ago • 9 comments

Hi. I used the library recently, and jad no problem. But, when I used today, the React NAtive throws the warning for useNativeDriver. Do you resolve this in a new PR, or has a way in the props to do that?

Girum avatar Jun 07 '21 22:06 Girum

Experiencing the same.

f4z3k4s avatar Jun 17 '21 06:06 f4z3k4s

Same. Warning states: Animated: 'useNativeDriver' was not specified. This is a required option and must be explicitly set to 'true' or 'false'.

EvangelosVorgias avatar Jul 08 '21 16:07 EvangelosVorgias

Experiencing the same.

sargsyanPicsart avatar Jul 10 '21 13:07 sargsyanPicsart

Experiencing the same.

IgarMikhailov avatar Aug 03 '21 08:08 IgarMikhailov

node_modules -> react-native-switch -> lib -> Switch.js

Add useNativeDrive:false to these lines.

Ekran Resmi 2021-08-07 14 46 28

tlgync avatar Aug 07 '21 11:08 tlgync

@tlgync Hmm... Editing files in the node modules folder is not a good idea.

nkemcels avatar Dec 06 '21 13:12 nkemcels

@tlgync Hmm... Editing files in the node modules folder is not a good idea.

you need to fork it.

tlgync avatar Dec 06 '21 13:12 tlgync

@tlgync Hmm... Editing files in the node modules folder is not a good idea.

@nkemcels Yes but using the patch-package we can have the permanent fix by changing code in node modules.

hupptechnologies avatar Apr 05 '22 05:04 hupptechnologies