useNativeDriver is required in Animation.Timing calls in newer versions of React Native
See original GitHub issueDescribe the feature
in Animated for react native v62+, useNativeDriver
is a required value. I saw this in particular for onPressIn
and onPressOut
for the Button
component.
Motivation
getting rid of yellow box errors on day one when 62 comes out fully
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Animated: `useNativeDriver` was not specified. This is a ...
Specifically, > 0.62 where specifying useNativeDriver is required. I'm guessing this is the offending Animated.timing call from the library.
Read more >Animated - React Native
You can use the native driver by specifying useNativeDriver: true in your animation configuration. See the Animations guide to learn more.
Read more >react-native-reanimated - npm
Latest version : 2.13.0, last published: a month ago. ... UI thread with useNativeDriver flag, we still had to call back into JS...
Read more >How Animations Work in React Native - freeCodeCamp
The Animated API. React Native exposes an API called Animated. It consists of a lot of wonderful things like animatable values, spring/timing ......
Read more >Optimizing React Native performance - LogRocket Blog
Solve your React Native app performance issues, like console statements and animations, using these optimization tools.
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
Fixed in v3.8
hi @ryanmagoon , i faced the same problem as you
i’m on
"react-native": "0.62.0",
"react-native-paper": "^3.6.0",
for me the problem was on Button with
mode='contained'
so my work around was to :mode
propstyle={{backgroundColor:Theme.primary, elevation:7, border:0}}
color={Theme.light}
and now the Button animations work without warnings 😃