diff --git a/docs/next/transforms.html b/docs/next/transforms.html index 0a34751ac95..4a42c99608b 100644 --- a/docs/next/transforms.html +++ b/docs/next/transforms.html @@ -1,4 +1,4 @@ -Transforms · React Native
Edit

Transforms

Reference

+
Edit

Transforms

Transforms are style properties that will help you modify the appearance and position of your components using 2D or 3D transformations. However, once you apply transforms, the layouts remain the same around the transformed component hence it might overlap with the nearby components. You can apply margin to the transformed component or the nearby components to prevent such overlaps. The following example increases the margin of the transformed component whenever it overlaps with the nearby components after a transform.

+

Example

+
+
    + + +
+
+

+

+

+
+

Reference

Methods

-

decomposedMatrix

-
-

Deprecated. Use the transform prop instead.

-
- - - - - - - -
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 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:

@@ -128,39 +467,19 @@
-

transformMatrix

+

decomposedMatrix, rotation, scaleX, scaleY, transformMatrix, translateX, translateY

-

Deprecated. Use the transform prop instead.

+

Deprecated. Use the transform prop instead.

- - -
TypeRequired
TransformMatrixPropTypeNo
-
-

translateX

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

translateY

- - - - - - - -
TypeRequired
deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.')No
-
Edit

Transforms

Reference

+
Edit

Transforms

Transforms are style properties that will help you modify the appearance and position of your components using 2D or 3D transformations. However, once you apply transforms, the layouts remain the same around the transformed component hence it might overlap with the nearby components. You can apply margin to the transformed component or the nearby components to prevent such overlaps. The following example increases the margin of the transformed component whenever it overlaps with the nearby components after a transform.

+

Example

+
+
    + + +
+
+

+

+

+
+

Reference

Methods

-

decomposedMatrix

-
-

Deprecated. Use the transform prop instead.

-
- - - - - - - -
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 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:

@@ -128,39 +467,19 @@
-

transformMatrix

+

decomposedMatrix, rotation, scaleX, scaleY, transformMatrix, translateX, translateY

-

Deprecated. Use the transform prop instead.

+

Deprecated. Use the transform prop instead.

- - -
TypeRequired
TransformMatrixPropTypeNo
-
-

translateX

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

translateY

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