mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Typescript keyboard type fix (#35714)
Summary: Made typescript typings for keyboardType correct ## Changelog [INTERNAL] [FIXED] - Typescript typings for TextInput Keyboard type. Url was placed in incorrect section, so I moved it to general type. Sorted keyboard types order as in React native docs.   Pull Request resolved: https://github.com/facebook/react-native/pull/35714 Test Plan: I think this fix can be merged without tests, because of it shortness Reviewed By: yungsters Differential Revision: D42233193 Pulled By: robhogan fbshipit-source-id: 11ce98c74aaf77e9cef733d6679d4f0a7fea259a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
255d648101
commit
4e45dce355
+5
-5
@@ -27,15 +27,15 @@ import {ViewProps} from '../View/ViewPropTypes';
|
||||
|
||||
export type KeyboardType =
|
||||
| 'default'
|
||||
| 'email-address'
|
||||
| 'numeric'
|
||||
| 'phone-pad'
|
||||
| 'number-pad'
|
||||
| 'decimal-pad';
|
||||
| 'decimal-pad'
|
||||
| 'numeric'
|
||||
| 'email-address'
|
||||
| 'phone-pad'
|
||||
| 'url';
|
||||
export type KeyboardTypeIOS =
|
||||
| 'ascii-capable'
|
||||
| 'numbers-and-punctuation'
|
||||
| 'url'
|
||||
| 'name-phone-pad'
|
||||
| 'twitter'
|
||||
| 'web-search';
|
||||
|
||||
Reference in New Issue
Block a user