Migrate Animated module to universal react-animated package #28892
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.
Summary
Popular packages like
react-native-web
andreact-spring
both vendorreact-native
's Animated module in order to use it in the browser while maintaining a reasonable bundle size. This change makes it possible to use the universal Animated module in any React project without installing all of React Native.react-native
shouldn't change at all.Libraries/NativeAnimation
package intoreact-animated
too.Changelog
[General] [Added] - Refactor
Libraries/Animated
intoreact-animated
and makereact-native
depend onreact-animated
[General] [Removed] - Removed
Libraries/Animated
-- this breaks any import that reaches into the internals of Animated likereact-native/Libraries/Animated/*
.Test Plan
TBD -- this PR is currently conceptual, will implement tests after further discussions.
@cpojer thoughts on how versioning could work with the package here?