Answers for "console.warn Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation`"

0

console.warn Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation`

to disable this warning
to your test file


I write in package.json

"jest": {
    "setupFiles": [
      "./mock.js"
    ],
      
      
In file mock.js

jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');

or

jest.mock('NativeAnimatedHelp');


https://stackoverflow.com/questions/58257932/cannot-find-module-nativeanimatedhelper-when-using-jest-mock
Posted by: Guest on August-04-2021

Code answers related to "console.warn Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation`"

Code answers related to "Javascript"

Browse Popular Code Answers by Language