Add support to URI keyboard type in Android (#31781)

Summary:
Android react-native `TextInput` component does nothing if prop `keyboardType` is `url` value. This PR solves that problem.

## Changelog

[Android] [Added] - Add support to URI keyboard type in Android

Pull Request resolved: https://github.com/facebook/react-native/pull/31781

Test Plan:
Before change:

{F630980679}

After Change:

{F630986399}

Reviewed By: lunaleaps

Differential Revision: D29517822

Pulled By: sshic

fbshipit-source-id: 1bda29584a3799570f34e772b5589b59ac80c524
This commit is contained in:
Adrián Cuesta
2021-07-16 05:13:07 -07:00
committed by Facebook GitHub Bot
parent 2970de9400
commit 1465c8f387
6 changed files with 17 additions and 9 deletions
@@ -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*
*