diff --git a/website/docs/ReactNavigation.md b/website/docs/ReactNavigation.md index d9a80bcd8..5f0f0ef34 100644 --- a/website/docs/ReactNavigation.md +++ b/website/docs/ReactNavigation.md @@ -163,8 +163,12 @@ import { render, fireEvent } from '@testing-library/react-native'; import AppNavigator from '../AppNavigator'; // Silence the warning https://github.com/facebook/react-native/issues/11094#issuecomment-263240420 +// Use with React Native <= 0.63 jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper'); +// Use this instead with React Native >= 0.64 +// jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); + describe('Testing react navigation', () => { test('page contains the header and 10 items', async () => { const component = (