Skip to content

Commit e1d80d6

Browse files
raychanksthymikee
andauthored
docs: update NativeAnimatedHelper mock path in React Navigation example (#712)
* docs: update jest.mock for 'NativeAnimatedHelper' in React Navigation example (#711) * Update website/docs/ReactNavigation.md * Update website/docs/ReactNavigation.md Co-authored-by: Michał Pierzchała <[email protected]>
1 parent e0236a5 commit e1d80d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/docs/ReactNavigation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ import { render, fireEvent } from '@testing-library/react-native';
163163
import AppNavigator from '../AppNavigator';
164164

165165
// Silence the warning https://github.com/facebook/react-native/issues/11094#issuecomment-263240420
166+
// Use with React Native <= 0.63
166167
jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');
167168

169+
// Use this instead with React Native >= 0.64
170+
// jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
171+
168172
describe('Testing react navigation', () => {
169173
test('page contains the header and 10 items', async () => {
170174
const component = (

0 commit comments

Comments
 (0)