From 5751a1bab49312f1619e82dca94cef33dd28fa4b Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Tue, 30 Aug 2022 19:22:10 -0300 Subject: [PATCH] feat: Add inputMode prop to TextInput docs --- docs/textinput.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/textinput.md b/docs/textinput.md index c685e65d14c..96979dc782f 100644 --- a/docs/textinput.md +++ b/docs/textinput.md @@ -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`
iOS
Determines the color of the keyboard.