diff --git a/__test__/setup.js b/__test__/setup.js index 9503549..43def3e 100644 --- a/__test__/setup.js +++ b/__test__/setup.js @@ -1,4 +1,6 @@ -jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper'); +import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock'; + +jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage); jest.mock('@react-navigation/native', () => { const actualNav = jest.requireActual('@react-navigation/native'); return {