Skip to content
Advertisement

How to resolve “Animated: `useNativeDriver` is not supported because the native animated module is missing.” in react-navigation?

I am working on expo SDK Version: 36, and on all platforms (ios/android/web)

When installing react-navigation for the first time as described in the documentation and running jest –watch while doing it, and the following warning appeared:

JavaScript

It also happen in the browser console:

JavaScript

Related issues:

The last one offers a solution, but it says to open Xcode, while I am on Linux Debian 10. I do not have Xcode. I can use a Macbook and do the step but I am wondering:

  • Should I care when working on Linux?
  • Should I care when working on Macbook (if it happens)?
  • Should I care for the health of my app while testing? Under which circumstances?

Advertisement

Answer

To disable this warning add either of the following to your test file.

JavaScript

or

JavaScript

In your package.json file

JavaScript

In mock.js

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement