diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index a1634eac57..2dd574507c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -5,6 +5,7 @@ // Kyle Roach // Tim Wang // Kamal Mahyuddin +// Naoufal El Yousfi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -1045,6 +1046,7 @@ export type KeyboardTypeIOS = | "decimal-pad" | "twitter" | "web-search"; +export type KeyboardTypeAndroid = "visible-password"; export type ReturnKeyType = "done" | "go" | "next" | "search" | "send"; export type ReturnKeyTypeAndroid = "none" | "previous"; @@ -1097,11 +1099,13 @@ export interface TextInputProperties editable?: boolean; /** - * enum("default", 'numeric', 'email-address', "ascii-capable", 'numbers-and-punctuation', 'url', 'number-pad', 'phone-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search') + * enum("default", 'numeric', 'email-address', "ascii-capable", 'numbers-and-punctuation', 'url', 'number-pad', 'phone-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search', 'visible-password') * Determines which keyboard to open, e.g.numeric. * The following values work across platforms: - default - numeric - email-address - phone-pad + * The following values work on iOS: - ascii-capable - numbers-and-punctuation - url - number-pad - name-phone-pad - decimal-pad - twitter - web-search + * The following values work on Android: - visible-password */ - keyboardType?: KeyboardType | KeyboardTypeIOS; + keyboardType?: KeyboardType | KeyboardTypeIOS | KeyboardTypeAndroid; /** * Limits the maximum number of characters that can be entered.