File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ jest.mock('react-native-reanimated', () => {
3737});
3838
3939// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
40+ // For RN >= 0.76
41+ jest .mock (' react-native/src/private/animated/NativeAnimatedHelper' );
42+
43+ // For RN <0.76
4044jest .mock (' react-native/Libraries/Animated/NativeAnimatedHelper' );
4145```
4246
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ setUpTests();
6464// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
6565import { jest } from ' @jest/globals' ;
6666
67+ // For RN >= 0.76
68+ jest .mock (' react-native/src/private/animated/NativeAnimatedHelper' );
69+
70+ // For RN <0.76
6771jest .mock (' react-native/Libraries/Animated/NativeAnimatedHelper' );
6872```
6973
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ setUpTests();
6464// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
6565import { jest } from ' @jest/globals' ;
6666
67+ // For RN >= 0.76
68+ jest .mock (' react-native/src/private/animated/NativeAnimatedHelper' );
69+
70+ // For RN <0.76
6771jest .mock (' react-native/Libraries/Animated/NativeAnimatedHelper' );
6872```
6973
You can’t perform that action at this time.
0 commit comments