Skip to content

Tests/add animated mocks #2456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2023
Merged

Tests/add animated mocks #2456

merged 2 commits into from
Feb 21, 2023

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

Fix some Animated related warning when running tests
To see the errors run these:
jest -- src/components/radioButton/__tests__/index.spec.tsx
jest -- src/components/carousel/__tests__/index.spec.tsx

(Animated.timing and Animated.parallel are enough for radio button but carousel requires Animated.event)

Changelog

None

@Inbal-Tish
Copy link
Collaborator

@M-i-k-e-l Is this the warning you're solving here?
Animated: useNativeDriveris not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, addRCTAnimationmodule to this app, or removeuseNativeDriver. Make sure to run bundle exec pod install first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

@M-i-k-e-l
Copy link
Collaborator Author

@M-i-k-e-l Is this the warning you're solving here? Animated: useNativeDriveris not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, addRCTAnimationmodule to this app, or removeuseNativeDriver. Make sure to run bundle exec pod install first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

Yes, the useNativeDriveris one

@Inbal-Tish Inbal-Tish merged commit 9764ee2 into master Feb 21, 2023
@M-i-k-e-l M-i-k-e-l deleted the tests/add-animated-mocks branch February 22, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants