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' Warnings

See original GitHub issue

I have a running deck swipper on my application, but whenever I manually move the cards, I get the following two warnings:

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

and

Animated.event now requires a second argument for options

I managed to hide these warnings using console.disableYellowBox = true; I’m pretty new to RN, and I’m wondering if there is a better solution to this. I am using React Native v6.14.4

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:9

github_iconTop GitHub Comments

4reactions
Rematocommented, Apr 17, 2020

@Remato Can you be more specific please ? Got the same warnings with RN : 0.62 Not a blocking bug tho

you have to set this manually for the component that is giving this warning, so…

you have a folder node_modules with yours components right? go to src/node_module/{your_component}

where: your_component is react_native_deck_swipper search for file Swiper.js open it and add this line here: Screenshot from 2020-04-14 16-18-31

Animated.timing(this.state.pan, {
      toValue: {
        x: x * SWIPE_MULTIPLY_FACTOR,
        y: y * SWIPE_MULTIPLY_FACTOR
      },
      duration: this.props.swipeAnimationDuration,
      useNativeDriver: true // Add This line
      ...

you can fix this errors manually for all components adding this line "useNativeDriver: true".

**if a component uses other components internally that have the same problem, you can define all the lines with that line too

2reactions
adavecohen95commented, Jun 29, 2020

Won’t this just come back whenever I refresh my dependencies

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Animated Images & Gifs - AnimatedImages.org
llll➤ Hundreds of beautiful animated Warning gifs, images and animations. All animated Warning pictures are absolutely free and can be linked directly, ...
Read more >
Warning Animated Icons – Free Download, GIF, JSON, AEP
Free Warning animated icons in various UI design styles for web, mobile apps. Download animated Warning icons for free in GIF, JSON, AEP...
Read more >
Warning Animations - Lottiefiles
Warning Animations designed for Web and Mobile. Download Lottie, MP4 and GIF animation.
Read more >
Animated Alerts - Etsy
Check out our animated alerts selection for the very best in unique or custom, handmade pieces from our digital shops.
Read more >
Animated Alerts - Dribbble
Animated Alerts. Inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration?
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