Mocking RN NativeAnimatedHelper - path has been changed
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 94/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react-native
- Domain
- documentation
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.
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');
- Dominant language
- JavaScript
- Stars
- 324
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
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.
More from react-navigation/react-navigation.github.io
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Explain that headerTransparent should be the same value for every screen in headerMode: float stack Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
All issues in react-navigation/react-navigation.github.io
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·
-
client-controller-update ta-bot-triage team-money-movement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MetaMask/metamask-mobile#36594 ·