File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Libraries/Components/TextInput Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ export type KeyboardTypeOptions =
45
45
| KeyboardTypeAndroid
46
46
| KeyboardTypeIOS ;
47
47
48
+ export type InputModeOptions =
49
+ | 'none'
50
+ | 'text'
51
+ | 'decimal'
52
+ | 'numeric'
53
+ | 'tel'
54
+ | 'search'
55
+ | 'email'
56
+ | 'url' ;
57
+
48
58
export type ReturnKeyType = 'done' | 'go' | 'next' | 'search' | 'send' ;
49
59
export type ReturnKeyTypeAndroid = 'none' | 'previous' ;
50
60
export type ReturnKeyTypeIOS =
@@ -588,6 +598,11 @@ export interface TextInputProps
588
598
*/
589
599
keyboardType ?: KeyboardTypeOptions | undefined ;
590
600
601
+ /**
602
+ * Works like the inputmode attribute in HTML, it determines which keyboard to open, e.g. numeric and has precedence over keyboardType.
603
+ */
604
+ inputMode ?: InputModeOptions | undefined ;
605
+
591
606
/**
592
607
* Limits the maximum number of characters that can be entered.
593
608
* Use this instead of implementing the logic in JS to avoid flicker.
You can’t perform that action at this time.
0 commit comments