From f2db20ef615bd88a605a9b8750ec8ba170e2415a Mon Sep 17 00:00:00 2001 From: doumart Date: Fri, 14 Feb 2020 15:10:18 -0500 Subject: [PATCH] [@types/react-native]: Update supported KeyboardType by both platforms (#42376) Reading the doc of react-native 61.0 there are more keyboard types supported by both platforms: https://facebook.github.io/react-native/docs/textinput#keyboardtype --- types/react-native/index.d.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index fda058851d6e73..d66d00bb8e554c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -32,6 +32,7 @@ // Kelvin Chu // Daiki Ihara // Abe Dolinger +// Dominique Richard // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -1208,14 +1209,18 @@ export interface TextInputAndroidProps { textAlignVertical?: 'auto' | 'top' | 'bottom' | 'center'; } -export type KeyboardType = 'default' | 'email-address' | 'numeric' | 'phone-pad'; +export type KeyboardType = + | 'default' + | 'email-address' + | 'numeric' + | 'phone-pad' + | 'number-pad' + | 'decimal-pad'; export type KeyboardTypeIOS = | 'ascii-capable' | 'numbers-and-punctuation' | 'url' - | 'number-pad' | 'name-phone-pad' - | 'decimal-pad' | 'twitter' | 'web-search'; export type KeyboardTypeAndroid = 'visible-password';