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.

Warning - Animated : UseNativeDriver was not specified

See original GitHub issue

Environment

React native : 0.62.1 React native paper : 3.7.0

Description

I have a new warning message after upgrading my project to React Native 0.62.1: Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

Reproducible Demo

The warning message is fired after clicking on the Button component.

The Button components and few others components don’t have useNativeDriver set to true

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
Hasnain-codecommented, Jun 4, 2020

Solution: just add useNativeDriver: true to the animation config

Animated.timing(formHeight,{ toValue:height/2.5, duration:600, easing:Easing.bezier(0,1.19,0.74,1.2), useNativeDriver:true. //Add this line }).start();

16reactions
Trancevercommented, Apr 10, 2020

Fixed in v3.8

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 >
Animated: useNativeDriver was not specified. This is ... - GitHub
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 This is a required ...
Solve the Warning Animated useNativeDriver was not specified This is a required option and must be explicitly set to 'true' or 'false'.
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 >

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