Skip to content

Commit

Permalink
TextInput: Add inputMode prop (#3289)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Sep 6, 2022
1 parent 9a4ad7a commit 04250d6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,27 @@ An optional identifier which links a custom [InputAccessoryView](inputaccessoryv

---

### `inputMode`

Works like the `inputmode` attribute in HTML, it determines which keyboard to open, e.g. `numeric` and has precedence over `keyboardType`.

Support the following values:

- `none`
- `text`
- `decimal`
- `numeric`
- `tel`
- `search`
- `email`
- `url`

| Type |
| --------------------------------------------------------------------------- |
| enum('decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', 'url') |

---

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

Determines the color of the keyboard.
Expand Down

0 comments on commit 04250d6

Please sign in to comment.