From 4e45dce355190e75cbf42ec6a5eae80a67baa79f Mon Sep 17 00:00:00 2001 From: XantreGodlike Date: Wed, 28 Dec 2022 06:42:54 -0800 Subject: [PATCH] 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. ![image](https://user-images.githubusercontent.com/57757211/209436128-beb7b872-b5fb-4122-8a82-11bff70f919d.png) ![image](https://user-images.githubusercontent.com/57757211/209436135-4453b398-1424-4e20-afea-40f54dbe88dc.png) 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 --- Libraries/Components/TextInput/TextInput.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.d.ts b/Libraries/Components/TextInput/TextInput.d.ts index 12cfec2987c..50d02c13f08 100644 --- a/Libraries/Components/TextInput/TextInput.d.ts +++ b/Libraries/Components/TextInput/TextInput.d.ts @@ -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';