Skip to content

Commit

Permalink
[@types/react-native]: Update supported KeyboardType by both platforms (
Browse files Browse the repository at this point in the history
DefinitelyTyped#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
  • Loading branch information
doumart committed Feb 14, 2020
1 parent 865ae1f commit f2db20e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions types/react-native/index.d.ts
Expand Up @@ -32,6 +32,7 @@
// Kelvin Chu <https://github.com/RageBill>
// Daiki Ihara <https://github.com/sasurau4>
// Abe Dolinger <https://github.com/256hz>
// Dominique Richard <https://github.com/doumart>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit f2db20e

Please sign in to comment.