373537b281
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 |
||
---|---|---|
.. | ||
__tests__ | ||
ColorPropType.js | ||
EdgeInsetsPropType.js | ||
LayoutPropTypes.js | ||
PointPropType.js | ||
StyleSheet.js | ||
StyleSheetPropType.js | ||
StyleSheetTypes.js | ||
StyleSheetValidation.js | ||
TransformPropTypes.js | ||
flattenStyle.js | ||
normalizeColor.js | ||
processColor.js | ||
processTransform.js | ||
setNormalizedColorAlpha.js |