react-native: adding visible-password keyboardType

This commit is contained in:
El Youssoufi Naoufal
2017-12-21 23:15:30 +00:00
parent f3e0c3d36f
commit 2690b9c7c8
+6 -2
View File
@@ -5,6 +5,7 @@
// Kyle Roach <https://github.com/iRoachie>
// Tim Wang <https://github.com/timwangdev>
// Kamal Mahyuddin <https://github.com/kamal>
// Naoufal El Yousfi <https://github.com/nelyousfi>
// 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.