【React Native】文件翻譯閱讀紀錄 - APIs - Transforms

by - 上午9:00

Facebook Open Source React Native


Transforms

Props



參考

Props

decomposedMatrix

已過時。請改用變換道具。
TYPEREQUIRED
DecomposedMatrixPropTypeNo

rotation

TYPEREQUIRED
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No

scaleX

TYPEREQUIRED
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No

scaleY

TYPEREQUIRED
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No

transform

transform接受一組轉換對象。每個對象指定將轉換為鍵的屬性,以及要在轉換中使用的值。不應該組合對象。每個對象使用一個鍵/值對。

旋轉變換需要一個字符串,以便變換可以用度(度)或弧度(弧度)表示。例如:
transform([{ rotateX: '45deg' }, { rotateZ: '0.785398rad' }])
偏斜變換需要一個字符串,以便變換可以用度(度)表示。例如:
transform([{ skewX: '45deg' }])
TYPEREQUIRED
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}No

transformMatrix

已過時。請改用變換道具。
TYPEREQUIRED
TransformMatrixPropTypeNo

translateX

TYPEREQUIRED
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No

translateY

TYPEREQUIRED
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No




You May Also Like

0 意見