-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Animated: useNativeDriver
was not specified. This is a required 'option and must be explicitly set to true
or false
#28558
Comments
Explicitly setting the option will make the warning disappear. |
|
|
|
There are too many Animated in the old project, it is too difficult to fix the warning. If you do n’t specify demohttps://github.com/zhanfashion/animatedDemo info
|
@zhanfashion note that this is an intentional change in 0.62 (changelog#deprecated) -- see a bit of an explanation in the description of the commit here. You can silence this specific warning using YellowBox, but bear in mind that at some point in the future the default value for |
@mlisik thanks |
Animated: |
This serves master a performance improvement as well as a fix for the numerous warnings that come up when using Animations without passing the `useNativeDriver` mandatory property. Also, the numerous warning messages where blocking the JS thread, making the application very slow when developing. @see facebook/react-native#28558 concerning useNativeDriver
react native 0.62 |
Is there some way to track which of the million components and dependencies in my project is causing this error? It's so spammy logging is basically unusable, but I'm given no information about which function/component/package contains the issue. |
I'm surprised that the documentation for Animated in all cases states |
https://reactnative.dev/blog/2017/02/14/using-native-driver-for-animated#how-do-i-use-this-in-my-app |
When using
The |
This happens after I do exactly what you suggested. |
Yet no one mentions what is useNativeDriver and whether changing it to |
I which file we can find Animated.timing ? |
Facing the same issue for a long time and still no update from native-based developers yet in 2020. Meanwhile use a workaround to avoid irritating yellow warnings of useNativeDriver. UPDATE RN V0.63 ABOVE FUNCTIONAL
CLASS BASED
UPDATE RN V0.63 BELOW
CLASS BASED
|
Get rid of warnings - facebook/react-native#28558
warn: Animated:
useNativeDriver
was not specified. This is a required 'option and must be explicitly set totrue
orfalse
Is the default value of
useNativeDriver
invalid?Description
Animated.timing(this.spinValue, {
toValue: 1,
duration: 500,
easing: Easing.linear
}).start();
React Native version:0.62.1
The text was updated successfully, but these errors were encountered: