diff --git a/Libraries/Components/TextInput/TextInput.d.ts b/Libraries/Components/TextInput/TextInput.d.ts index 50d02c13f08152..637807aafd3864 100644 --- a/Libraries/Components/TextInput/TextInput.d.ts +++ b/Libraries/Components/TextInput/TextInput.d.ts @@ -45,6 +45,16 @@ export type KeyboardTypeOptions = | KeyboardTypeAndroid | KeyboardTypeIOS; +export type InputModeOptions = + | 'none' + | 'text' + | 'decimal' + | 'numeric' + | 'tel' + | 'search' + | 'email' + | 'url'; + export type ReturnKeyType = 'done' | 'go' | 'next' | 'search' | 'send'; export type ReturnKeyTypeAndroid = 'none' | 'previous'; export type ReturnKeyTypeIOS = @@ -588,6 +598,11 @@ export interface TextInputProps */ keyboardType?: KeyboardTypeOptions | undefined; + /** + * Works like the inputmode attribute in HTML, it determines which keyboard to open, e.g. numeric and has precedence over keyboardType. + */ + inputMode?: InputModeOptions | undefined; + /** * Limits the maximum number of characters that can be entered. * Use this instead of implementing the logic in JS to avoid flicker.