diff --git a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js index b8d559a2954..0059f35cd63 100644 --- a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js @@ -37,10 +37,10 @@ export type KeyboardType = | 'phone-pad' | 'number-pad' | 'decimal-pad' + | 'url' // iOS-only | 'ascii-capable' | 'numbers-and-punctuation' - | 'url' | 'name-phone-pad' | 'twitter' | 'web-search' @@ -244,6 +244,7 @@ export type NativeProps = $ReadOnly<{| * - `decimal-pad` * - `email-address` * - `phone-pad` + * - `url` * * *Android Only* * diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 74f0113cac7..b0227ca0eb5 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -146,10 +146,10 @@ export type KeyboardType = | 'phone-pad' | 'number-pad' | 'decimal-pad' + | 'url' // iOS-only | 'ascii-capable' | 'numbers-and-punctuation' - | 'url' | 'name-phone-pad' | 'twitter' | 'web-search' @@ -501,6 +501,7 @@ export type Props = $ReadOnly<{| * - `decimal-pad` * - `email-address` * - `phone-pad` + * - `url` * * *iOS Only* * @@ -508,7 +509,6 @@ export type Props = $ReadOnly<{| * * - `ascii-capable` * - `numbers-and-punctuation` - * - `url` * - `name-phone-pad` * - `twitter` * - `web-search` diff --git a/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js index 8adbf0c988d..0f371f7af2e 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js @@ -136,6 +136,7 @@ module.exports = { * - `decimal-pad` * - `email-address` * - `phone-pad` + * - `url` * * *iOS Only* * @@ -143,7 +144,6 @@ module.exports = { * * - `ascii-capable` * - `numbers-and-punctuation` - * - `url` * - `name-phone-pad` * - `twitter` * - `web-search` @@ -162,10 +162,10 @@ module.exports = { 'numeric', 'phone-pad', 'number-pad', + 'url', // iOS-only 'ascii-capable', 'numbers-and-punctuation', - 'url', 'name-phone-pad', 'decimal-pad', 'twitter', diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java index 322bdc17353..90a3b22a675 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java @@ -108,6 +108,7 @@ public class ReactTextInputManager extends BaseViewManager