Warning - Animated : UseNativeDriver was not specified
See original GitHub issueEnvironment
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:
- Created 3 years ago
- Reactions:18
- Comments:18 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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();
Fixed in v3.8