Q群 567530369,小伙伴们都在这里等你哦~

Transforms

查看Props


文档

Props

decomposedMatrix

Deprecated. Use the transform prop instead.

类型必填
DecomposedMatrixPropType

rotation

类型必填
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')

scaleX

类型必填
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')

scaleY

类型必填
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')

transform

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' }])

类型必填
array of object: {perspective: number}, ,object: {rotate: string}, ,object: {rotateX: string}, ,object: {rotateY: string}, ,object: {rotateZ: string}, ,object: {scale: number}, ,object: {scaleX: number}, ,object: {scaleY: number}, ,object: {translateX: number}, ,object: {translateY: number}, ,object: {skewX: string}, ,object: {skewY: string}

transformMatrix

Deprecated. Use the transform prop instead.

类型必填
TransformMatrixPropType

translateX

类型必填
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')

translateY

类型必填
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')