question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animated: `useNativeDriver` was not specified.

See original GitHub issue

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

The new update of react native requires a modification in the use of Animated: useNativeDriver

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:22
  • Comments:14

github_iconTop GitHub Comments

12reactions
rodolfocassorillocommented, Jan 27, 2021

I already made the modifications in the file, you can download it (link below) and replace the “index.js” file inside your “…/node-modules/react-native-swipeable/lib” But you must replace this file everytime you clean your project or when you start a new project. So if someone can merge the file in the repo will help the community.

https://gist.github.com/rodolfocassorillo/a19caff2828bb5407db7044c8fcd926d

react-native-swipeable.zip

9reactions
ighosh07commented, Jan 27, 2021

1.Go to your node modules and navigate to ‘react-native-swipeable’ folder. 2. open index.js 3. go to line number 673 4. add useNativeDriver: false, 5. save 6. do npm cache clean --force 7. npm install

Worked for me.Not getting the warning. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Animated: `useNativeDriver` was not specified issue of ...
It gives a warning message: Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or ......
Read more >
`useNativeDriver` was not specified. This is a required 'option ...
warn: Animated: useNativeDriver was not specified. This is a required 'option and must be explicitly set to true or false.
Read more >
How to Fix Animated: `useNativeDriver` was not specified ...
1- First solution for Animation and Animatable As the warning says, we need to specify the useNativeDriver option explicitly and set it to...
Read more >
Animated: `useNativeDriver` was not specified issue of ...
Solution: As the warning says, we need to specify the useNativeDriver option explicitly and set it to true or false . 1- Animation...
Read more >
Animated useNativeDriver was not specified This is a required ...
The error Animated useNativeDriver was not specified This is a required option and must be explicitly set to 'true' or 'false' comes when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found