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

React Native warning Animated: 'useNativeDriver' #93

Open
Girum opened this issue Jun 7, 2021 · 9 comments
Open

React Native warning Animated: 'useNativeDriver' #93

Girum opened this issue Jun 7, 2021 · 9 comments

Comments

@Girum
Copy link

Girum commented Jun 7, 2021

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?

@f4z3k4s
Copy link

f4z3k4s commented Jun 17, 2021

Experiencing the same.

@EvangelosVorgias
Copy link

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

@sargsyanPicsart
Copy link

Experiencing the same.

1 similar comment
@IgarMikhailov
Copy link

Experiencing the same.

@tlgync
Copy link

tlgync commented Aug 7, 2021

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

Add useNativeDrive:false to these lines.

Ekran Resmi 2021-08-07 14 46 28

peh added a commit to peh/react-native-switch that referenced this issue Nov 7, 2021
add a new prop to define whether or not to use nativeDriver
@nkemcels
Copy link

nkemcels commented Dec 6, 2021

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

@tlgync
Copy link

tlgync commented Dec 6, 2021

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

you need to fork it.

@hupptechnologies
Copy link

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

@petros-g
Copy link

petros-g commented Aug 7, 2024

library is not leveraging UI thread. Use this to solve your issue: react-native switch

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

9 participants