Files
react-native/docs/transforms.md
T
2017-10-27 11:51:58 -07:00

3.0 KiB

id, title, original_id
id title original_id
version-0.50-transforms transforms transforms

Transforms #

Props #

decomposedMatrix?: DecomposedMatrixPropType #

Deprecated. Use the transform prop instead.

transform?: [{perspective: number}, {rotate: string}, {rotateX: string}, {rotateY: string}, {rotateZ: string}, {scale: number}, {scaleX: number}, {scaleY: number}, {translateX: number}, {translateY: number}, {skewX: string}, {skewY: string}] #

transform accepts an array of transformation objects. Each object specifies the property that will be transformed as the key, and the value to use in the transformation. Objects should not be combined. Use a single key/value pair per object.

The rotate transformations require a string so that the transform may be expressed in degrees (deg) or radians (rad). For example:

transform([{ rotateX: '45deg' }, { rotateZ: '0.785398rad' }])

The skew transformations require a string so that the transform may be expressed in degrees (deg). For example:

transform([{ skewX: '45deg' }])

transformMatrix?: TransformMatrixPropType #

Deprecated. Use the transform prop instead.

Improve this page by sending a pull request!