Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 40 additions & 30 deletions docs/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,16 @@ Provides an initial value that will change when the user starts typing. Useful f

---

### `disableKeyboardShortcuts` <div className="label ios">iOS</div>

If `true`, the keyboard shortcuts (undo/redo and copy buttons) are disabled.

| Type | Default |
| ---- | ------- |
| bool | `false` |

---

### `cursorColor` <div className="label android">Android</div>

When provided it will set the color of the cursor (or "caret") in the component. Unlike the behavior of `selectionColor` the cursor color will be set independently from the color of the text selection box.
Expand Down Expand Up @@ -525,6 +535,26 @@ The following values work on Android only:

---

### `lineBreakStrategyIOS` <div className="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'` |

---

### `lineBreakModeIOS` <div className="label ios">iOS</div>

Set line break mode on iOS. Possible values are `wordWrapping`, `char`, `clip`, `head`, `middle` and `tail`.

| Type | Default |
| -------------------------------------------------------------------------- | ---------------- |
| enum(`'wordWrapping'`, `'char'`, `'clip'`, `'head'`, `'middle'`, `'tail'`) | `'wordWrapping'` |

---

### `maxFontSizeMultiplier`

Specifies largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:
Expand Down Expand Up @@ -879,6 +909,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

### `smartInsertDelete` <div className="label ios">iOS</div>

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

### `spellCheck` <div className="label ios">iOS</div>

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down Expand Up @@ -1060,36 +1100,6 @@ The value to show for the text input. `TextInput` is a controlled component, whi
| ------ |
| string |

---

### `lineBreakStrategyIOS` <div className="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'` |

---

### `lineBreakModeIOS` <div className="label ios">iOS</div>

Set line break mode on iOS. Possible values are `wordWrapping`, `char`, `clip`, `head`, `middle` and `tail`.

| Type | Default |
| -------------------------------------------------------------------------- | ---------------- |
| enum(`'wordWrapping'`, `'char'`, `'clip'`, `'head'`, `'middle'`, `'tail'`) | `'wordWrapping'` |

---

### `disableKeyboardShortcuts` <div className="label ios">iOS</div>

If `true`, the keyboard shortcuts (undo/redo and copy buttons) are disabled. The default value is `false`.

| Type |
| ---- |
| bool |

## Methods

### `.focus()`
Expand Down
10 changes: 10 additions & 0 deletions website/versioned_docs/version-0.77/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

### `smartInsertDelete` <div className="label ios">iOS</div>

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

### `spellCheck` <div className="label ios">iOS</div>

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down
10 changes: 10 additions & 0 deletions website/versioned_docs/version-0.78/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

### `smartInsertDelete` <div className="label ios">iOS</div>

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

### `spellCheck` <div className="label ios">iOS</div>

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down
10 changes: 10 additions & 0 deletions website/versioned_docs/version-0.79/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

### `smartInsertDelete` <div className="label ios">iOS</div>

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

### `spellCheck` <div className="label ios">iOS</div>

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down
68 changes: 38 additions & 30 deletions website/versioned_docs/version-0.80/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ Provides an initial value that will change when the user starts typing. Useful f
| ------ |
| string |

### `disableKeyboardShortcuts` <div className="label ios">iOS</div>

If `true`, the keyboard shortcuts (undo/redo and copy buttons) are disabled.

| Type | Default |
| ---- | ------- |
| bool | `false` |

---

### `cursorColor` <div className="label android">Android</div>
Expand Down Expand Up @@ -525,6 +533,26 @@ The following values work on Android only:

---

### `lineBreakModeIOS` <div className="label ios">iOS</div>

Set line break mode on iOS. Possible values are `wordWrapping`, `char`, `clip`, `head`, `middle` and `tail`.

| Type | Default |
| -------------------------------------------------------------------------- | ---------------- |
| enum(`'wordWrapping'`, `'char'`, `'clip'`, `'head'`, `'middle'`, `'tail'`) | `'wordWrapping'` |

---

### `lineBreakStrategyIOS` <div className="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'` |

---

### `maxFontSizeMultiplier`

Specifies largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:
Expand Down Expand Up @@ -879,6 +907,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

### `smartInsertDelete` <div className="label ios">iOS</div>

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

### `spellCheck` <div className="label ios">iOS</div>

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down Expand Up @@ -1060,36 +1098,6 @@ The value to show for the text input. `TextInput` is a controlled component, whi
| ------ |
| string |

---

### `lineBreakModeIOS` <div className="label ios">iOS</div>

Set line break mode on iOS. Possible values are `wordWrapping`, `char`, `clip`, `head`, `middle` and `tail`.

| Type | Default |
| -------------------------------------------------------------------------- | ---------------- |
| enum(`'wordWrapping'`, `'char'`, `'clip'`, `'head'`, `'middle'`, `'tail'`) | `'wordWrapping'` |

---

### `lineBreakStrategyIOS` <div className="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'` |

---

### `disableKeyboardShortcuts` <div className="label ios">iOS</div>

If `true`, the keyboard shortcuts (undo/redo and copy buttons) are disabled. The default value is `false`.

| Type |
| ---- |
| bool |

## Methods

### `.focus()`
Expand Down
10 changes: 10 additions & 0 deletions website/versioned_docs/version-0.81/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,16 @@ When `false`, it will prevent the soft keyboard from showing when the field is f

---

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

If `false`, the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation.

| Type | Default |
| ---- | ------- |
| bool | `true` |

---

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

If `false`, disables spell-check style (i.e. red underlines). The default value is inherited from `autoCorrect`.
Expand Down