mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3cbafcccba
Summary: Implement a real Transform interpolation. It uses quaternions/Slerp to interpolate rotations. This allows us to interpolate scale, rotation, and translation simultaneously. See caveats in code. Because of the way transform matrices work, there isn't much (anything?) we can do about skew, and certain values will look nonsensical. This seems to be true for any variant of this algorithm. This is a big step up from Classic RN which didn't support this in LayoutAnimations at all. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D21615829 fbshipit-source-id: da6cb931ce857107d4b3d20108fb9bbecbf4f898