0ed31eb3d6
Summary: This improves JS validations of the transform object and makes it a bit stricter (hence the breaking change). When moving transform objects parsing to native (#10658) the validations got out of sync a bit, this makes sure JS validations are the same or stricter than the native ones to make sure we get consistent errors across platforms. See #12110 for an example of an error that now gets caught by JS validations. Also added snapshot tests for the errors to make sure `processTransform` throws when passing invalid values. It only tests the validation since the object parsing is now done natively for iOS and Android. **Test plan** Test that there are no errors in UIExplorer Run new unit tests Closes https://github.com/facebook/react-native/pull/12115 Differential Revision: D4488933 Pulled By: mkonicek fbshipit-source-id: a714e6175b2892284a44c870506165099efec1ed |
||
---|---|---|
.. | ||
__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 |