mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-17 07:39:17 +08:00
iOS support keyboardType ASCIICapableNumberPad (#20597)
Summary: React native is missing a keyboard type for iOS so I included support for it. So it can be used in react native app https://developer.apple.com/documentation/uikit/uikeyboardtype/uikeyboardtypeasciicapablenumberpad Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. Pull Request resolved: https://github.com/facebook/react-native/pull/20597 Differential Revision: D14103498 Pulled By: cpojer fbshipit-source-id: b0aa17f3e527734c6e90eadc73c96db4dd002698
This commit is contained in:
committed by
Facebook Github Bot
parent
da023c5873
commit
65cfb9a47d
@@ -355,6 +355,7 @@ RCT_ENUM_CONVERTER(UIKeyboardType, (@{
|
||||
@"decimal-pad": @(UIKeyboardTypeDecimalPad),
|
||||
@"twitter": @(UIKeyboardTypeTwitter),
|
||||
@"web-search": @(UIKeyboardTypeWebSearch),
|
||||
@"ascii-capable-number-pad": @(UIKeyboardTypeASCIICapableNumberPad),
|
||||
// Added for Android compatibility
|
||||
@"numeric": @(UIKeyboardTypeDecimalPad),
|
||||
}), UIKeyboardTypeDefault, integerValue)
|
||||
|
||||
Reference in New Issue
Block a user