Skip to content

Commit

Permalink
feat: Add inputMode prop to TextInput docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Aug 30, 2022
1 parent 2594241 commit 5751a1b
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 5751a1b

Please sign in to comment.