diff --git a/docs/text-style-props.md b/docs/text-style-props.md index a4c1e6ccc7d..9daf7ff3db2 100644 --- a/docs/text-style-props.md +++ b/docs/text-style-props.md @@ -872,11 +872,11 @@ Numeric value that controls the vertical spacing between lines of text within a ### `textAlign` -Specifies text alignment. On Android, the value 'justify' is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. +Specifies text alignment. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. On Android, the value `justify` is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. -| Type | Default | -| ------------------------------------------------------------ | -------- | -| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`) | `'auto'` | +| Type | Default | +| -------------------------------------------------------------------------------- | -------- | +| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`, `'start'`, `'end'`) | `'auto'` | --- diff --git a/docs/textinput.md b/docs/textinput.md index 705b9d825ac..ed9c715f881 100644 --- a/docs/textinput.md +++ b/docs/textinput.md @@ -943,17 +943,19 @@ For both single line and multiline inputs: ### `textAlign` -Align the input text to the left, center, or right sides of the input field. +Align the input text. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. Possible values for `textAlign` are: - `left` - `center` - `right` +- `start` +- `end` -| Type | -| ------------------------------- | -| enum('left', 'center', 'right') | +| Type | +| ----------------------------------------------- | +| enum('left', 'center', 'right', 'start', 'end') | --- diff --git a/website/versioned_docs/version-0.87/text-style-props.md b/website/versioned_docs/version-0.87/text-style-props.md index ff85754108b..11d9050aed1 100644 --- a/website/versioned_docs/version-0.87/text-style-props.md +++ b/website/versioned_docs/version-0.87/text-style-props.md @@ -847,11 +847,11 @@ Numeric value that controls the vertical spacing between lines of text within a ### `textAlign` -Specifies text alignment. On Android, the value 'justify' is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. +Specifies text alignment. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. On Android, the value `justify` is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. -| Type | Default | -| ------------------------------------------------------------ | -------- | -| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`) | `'auto'` | +| Type | Default | +| -------------------------------------------------------------------------------- | -------- | +| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`, `'start'`, `'end'`) | `'auto'` | --- diff --git a/website/versioned_docs/version-0.87/textinput.md b/website/versioned_docs/version-0.87/textinput.md index 4ba1305f2eb..fbae5553b0e 100644 --- a/website/versioned_docs/version-0.87/textinput.md +++ b/website/versioned_docs/version-0.87/textinput.md @@ -957,17 +957,19 @@ For both single line and multiline inputs: ### `textAlign` -Align the input text to the left, center, or right sides of the input field. +Align the input text. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. Possible values for `textAlign` are: - `left` - `center` - `right` +- `start` +- `end` -| Type | -| ------------------------------- | -| enum('left', 'center', 'right') | +| Type | +| ----------------------------------------------- | +| enum('left', 'center', 'right', 'start', 'end') | --- diff --git a/website/versioned_docs/version-0.88/text-style-props.md b/website/versioned_docs/version-0.88/text-style-props.md index a4c1e6ccc7d..9daf7ff3db2 100644 --- a/website/versioned_docs/version-0.88/text-style-props.md +++ b/website/versioned_docs/version-0.88/text-style-props.md @@ -872,11 +872,11 @@ Numeric value that controls the vertical spacing between lines of text within a ### `textAlign` -Specifies text alignment. On Android, the value 'justify' is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. +Specifies text alignment. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. On Android, the value `justify` is only supported on Oreo (8.0) or above (API level >= 26). The value will fallback to `left` on lower Android versions. -| Type | Default | -| ------------------------------------------------------------ | -------- | -| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`) | `'auto'` | +| Type | Default | +| -------------------------------------------------------------------------------- | -------- | +| enum(`'auto'`, `'left'`, `'right'`, `'center'`, `'justify'`, `'start'`, `'end'`) | `'auto'` | --- diff --git a/website/versioned_docs/version-0.88/textinput.md b/website/versioned_docs/version-0.88/textinput.md index 4ba1305f2eb..fbae5553b0e 100644 --- a/website/versioned_docs/version-0.88/textinput.md +++ b/website/versioned_docs/version-0.88/textinput.md @@ -957,17 +957,19 @@ For both single line and multiline inputs: ### `textAlign` -Align the input text to the left, center, or right sides of the input field. +Align the input text. The `start` and `end` values align text to the start or end edge based on the layout direction. Unlike `left` and `right`, these values adapt to right-to-left layouts. Possible values for `textAlign` are: - `left` - `center` - `right` +- `start` +- `end` -| Type | -| ------------------------------- | -| enum('left', 'center', 'right') | +| Type | +| ----------------------------------------------- | +| enum('left', 'center', 'right', 'start', 'end') | ---