Skip to content

Commit

Permalink
add keyboardType option for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
radreamer committed Apr 5, 2018
1 parent 9c1ffa4 commit 946dd01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ prompt(
type | Text input type: `'numeric', 'secure-text', 'phone-pad', 'email-address'` | String | 'default'
cancelable | | Boolean |
defaultValue | Default input value | String | ''
keyboardType | The keyboard type of first text field(if exists). One of `'default'`, `'email-address'`, `'numeric'`, `'phone-pad'`, `'ascii-capable'`, `'numbers-and-punctuation'`, `'url'`, `'number-pad'`, `'name-phone-pad'`, `'decimal-pad'`, `'twitter'` or `'web-search'`. | String | 'default'
placeholder | | String | ''


Expand Down
2 changes: 1 addition & 1 deletion index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export default function prompt(
callbackOrButtons?: ?((text: string) => void) | Object,
options?: Object
): void {
AlertIOS.prompt(title, message, callbackOrButtons, options.type, options.defaultValue);
AlertIOS.prompt(title, message, callbackOrButtons, options.type, options.defaultValue, options.keyboardType);
};

0 comments on commit 946dd01

Please sign in to comment.