react-native/Libraries/NativeAnimation/Nodes
Ryan Gomba eb96b7fabc Maintain transform order
Summary:
This diff addresses the issues raised by kmagiera in https://github.com/facebook/react-native/pull/7884. Transforms should be applied in the order they are defined, just like in `processTransform.js`. A scale applied before a translation, for instance, should give a different result than a translation applied before a scale.

We leverage CATransform3D to do the heavy lifting. A concatenated transform is passed all the way to `RCTViewPropertyMapper`. It is compared with the transform currently applied to the view, and if different, applied. The same approach is used for opacity.

I think it makes the most sense to do this diffing in `RCTViewPropertyMapper`, as opposed to creating and cleaning up an `_updatedPropsDictionary` each frame in `RCTTransformAnimatedNode` and `RCTStyleAnimatedNode`. The node should keep its full value; applying a minimal set of altered props is an optimization.  The higher up this optimization is implemented, the more assumptions it makes. e.g. that there will only ever be a sing
Closes https://github.com/facebook/react-native/pull/9050

Differential Revision: D3658139

fbshipit-source-id: ad6286762ef734084cbdf83c9bd9241190302d34
2016-08-02 14:28:29 -07:00
..
RCTAdditionAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAdditionAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimationDriverNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimationDriverNode.m Harmonize native animation callback args with JS 2016-07-05 11:13:23 -07:00
RCTInterpolationAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTInterpolationAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTMultiplicationAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTMultiplicationAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTPropsAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTPropsAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTStyleAnimatedNode.h Maintain transform order 2016-08-02 14:28:29 -07:00
RCTStyleAnimatedNode.m Maintain transform order 2016-08-02 14:28:29 -07:00
RCTTransformAnimatedNode.h Maintain transform order 2016-08-02 14:28:29 -07:00
RCTTransformAnimatedNode.m Maintain transform order 2016-08-02 14:28:29 -07:00
RCTValueAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTValueAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00