Skip to content

Commit 04250d6

Browse files
TextInput: Add inputMode prop (facebook#3289)
1 parent 9a4ad7a commit 04250d6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/textinput.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,27 @@ An optional identifier which links a custom [InputAccessoryView](inputaccessoryv
373373

374374
---
375375

376+
### `inputMode`
377+
378+
Works like the `inputmode` attribute in HTML, it determines which keyboard to open, e.g. `numeric` and has precedence over `keyboardType`.
379+
380+
Support the following values:
381+
382+
- `none`
383+
- `text`
384+
- `decimal`
385+
- `numeric`
386+
- `tel`
387+
- `search`
388+
- `email`
389+
- `url`
390+
391+
| Type |
392+
| --------------------------------------------------------------------------- |
393+
| enum('decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', 'url') |
394+
395+
---
396+
376397
### `keyboardAppearance` <div class="label ios">iOS</div>
377398

378399
Determines the color of the keyboard.

0 commit comments

Comments
 (0)