mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
react-native: adding visible-password keyboardType
This commit is contained in:
Vendored
+6
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user