react-navigation / react-navigation/react-navigation.github.io
Mocking RN NativeAnimatedHelper - path has been changed
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 324
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
RN Animated NativeAnimatedHelper.js path has been changed since RN 0.76. The new path should be:
jest.mock('react-native/src/private/animated/NativeAnimatedHelper');
This snippet needs to be updated to mention the new and old paths.
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
import { jest } from '@jest/globals';
// For RN >= 0.76
jest.mock('react-native/src/private/animated/NativeAnimatedHelper');
// For RN <0.76
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open versioned_docs/version-7.x/testing.md around line 67 and review the React Native Animated mocking snippet. Update it to show the new path for RN >= 0.76 and the old path for RN < 0.76, then verify the rendered documentation clearly presents both options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 94/100