fix: use direct reanimated type imports instead of namespace access#7331
Merged
janicduplessis merged 1 commit intodevelopfrom Apr 18, 2026
Merged
fix: use direct reanimated type imports instead of namespace access#7331janicduplessis merged 1 commit intodevelopfrom
janicduplessis merged 1 commit intodevelopfrom
Conversation
|
🧪 Flashlight Performance Report (AWS Device Farm) 🔀 Commit: e9f2c74
|
Contributor
|
Do we wanna fix |
Contributor
Author
|
Yes I’ll double check I didn’t miss any |
Contributor
Author
|
Fixed in 92e3bbb. Also grepped the tree for other deprecated namespace-type accesses ( |
olerass
approved these changes
Apr 16, 2026
Replace deprecated `Animated.EasingFunction` and `Animated.AnimateStyle` namespace type access with direct imports (`EasingFunction`, `AnimatedStyle`) from react-native-reanimated. Prepares for new arch compatibility.
92e3bbb to
5566f33
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes APP-3616
What changed (plus any additional context for devs)
Extracted from the new arch migration PR #6924.
These namespace exports are deprecated in newer Reanimated versions and will cause TypeScript errors after the upgrade. The direct imports (
EasingFunction,AnimatedStyle) are already available in Reanimated 3.19.4 so this can be landed ahead of the full upgrade.Type-only change, no runtime impact.
What to test
yarn lint:ts)