react-native/Libraries/StyleSheet
Sebastian Markbage 373537b281 Deprecate transformMatrix and decomposedMatrix
Summary:
transformMatrix only worked on iOS and there is an equivalent API that (mostly)
works cross platform.

decomposedMatrix could technically be passed on Android but it wasn't document and explicitly flagged as not working.

My goal is to deprecate both uses and then the only supported API is the `transform: [{ matrix: ... }]` form.

The only difference is that on Android the matrix gets decomposed.

Currently there is some special cased magic that renames transform -> transformMatrix or decomposedMatrix depending on platform.

https://github.com/facebook/react/blob/master/src/renderers/native/ReactNative/ReactNativeAttributePayload.js#L50

Therefore I'm adding an alias for both native platforms called just "transform".

Next I'll swap over the JS to always target the name "transform". The only difference is how the value is marshalled over the bridge in processTransform.

To do this, I have to clean up a few callers. Mostly that's just swapping to the new API.

For buildInterpolator this is a bit trickier but this fixes it for all our use cases (which is only the Navigator in AdsManager).

Reviewed By: vjeux

Differential Revision: D3239960

fb-gh-sync-id: 838edb6644c6cdd0716834f712042f226ff3136f
fbshipit-source-id: 838edb6644c6cdd0716834f712042f226ff3136f
2016-04-29 14:19:25 -07:00
..
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
ColorPropType.js Add support for number as colors 2016-02-08 04:04:38 -08:00
EdgeInsetsPropType.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
LayoutPropTypes.js Remove min/max Width/Height in the docs 2016-01-27 18:26:56 -08:00
PointPropType.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
StyleSheet.js Add a missing parenthese 2016-03-30 10:04:54 -07:00
StyleSheetPropType.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
StyleSheetTypes.js [Flow] Clean up react-native for Flow v0.15.0 2015-09-04 16:51:18 -08:00
StyleSheetValidation.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
TransformPropTypes.js Deprecate transformMatrix and decomposedMatrix 2016-04-29 14:19:25 -07:00
flattenStyle.js Caches array length in flattenStyles methods for loop 2016-03-26 06:54:18 -07:00
normalizeColor.js Add support for number as colors 2016-02-08 04:04:38 -08:00
processColor.js Change internal format from 0xaarrggbb to 0xrrggbbaa 2016-02-07 10:14:29 -08:00
processTransform.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
setNormalizedColorAlpha.js Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00