Skip to content

Commit 658768c

Browse files
authored
Explain difference between verticalAlign and textAlignVertical (#5076)
1 parent b506d81 commit 658768c

11 files changed

Lines changed: 22 additions & 0 deletions

File tree

docs/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.77/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
870870

871871
### `textAlignVertical` <div className="label android">Android</div>
872872

873+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
874+
873875
| Type | Default |
874876
| ----------------------------------------------- | -------- |
875877
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.78/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
872872

873873
### `textAlignVertical` <div className="label android">Android</div>
874874

875+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
876+
875877
| Type | Default |
876878
| ----------------------------------------------- | -------- |
877879
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.79/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
872872

873873
### `textAlignVertical` <div className="label android">Android</div>
874874

875+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
876+
875877
| Type | Default |
876878
| ----------------------------------------------- | -------- |
877879
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.80/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
872872

873873
### `textAlignVertical` <div className="label android">Android</div>
874874

875+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
876+
875877
| Type | Default |
876878
| ----------------------------------------------- | -------- |
877879
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.81/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.82/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.83/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.84/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

website/versioned_docs/version-0.85/text-style-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ Specifies text alignment. On Android, the value 'justify' is only supported on O
859859

860860
### `textAlignVertical` <div className="label android">Android</div>
861861

862+
An alias for `verticalAlign` style prop, if you use both properties, `verticalAlign` will take precedence over `textAlignVertical`
863+
862864
| Type | Default |
863865
| ----------------------------------------------- | -------- |
864866
| enum(`'auto'`, `'top'`, `'bottom'`, `'center'`) | `'auto'` |

0 commit comments

Comments
 (0)