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