Skip to content

Commit

Permalink
Added lineBreakStrategyIOS to Text and TextInput (facebook#2566)
Browse files Browse the repository at this point in the history
Co-authored-by: Bartosz Kaszubowski <[email protected]>
  • Loading branch information
bang9 and Simek authored Nov 6, 2022
1 parent ab32e2d commit 00c2808
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,16 @@ It allows the user to select text and to use the native copy and paste functiona
| -------------------------------------------------------- | ------- |
| enum(`'auto'`, `'text'`, `'none'`, `'contain'`, `'all'`) | `none` |

---

### `lineBreakStrategyIOS` <div class="label ios">iOS</div>

Set line break strategy on iOS 14+. Possible values are `none`, `standard`, `hangul-word` and `push-out`.

| Type | Default |
| ----------------------------------------------------------- | -------- |
| enum(`'none'`, `'standard'`, `'hangul-word'`, `'push-out'`) | `'none'` |

## Type Definitions

### TextLayout
Expand Down
10 changes: 10 additions & 0 deletions docs/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,16 @@ The value to show for the text input. `TextInput` is a controlled component, whi
| ------ |
| string |

---

### `lineBreakStrategyIOS` <div class="label ios">iOS</div>

Set line break strategy on iOS 14+. Possible values are `none`, `standard`, `hangul-word` and `push-out`.

| Type | Default |
| ----------------------------------------------------------- | -------- |
| enum(`'none'`, `'standard'`, `'hangul-word'`, `'push-out'`) | `'none'` |

## Methods

### `.focus()`
Expand Down

0 comments on commit 00c2808

Please sign in to comment.