From 65cfb9a47d3f0a135c114d8abf1e618665e5205d Mon Sep 17 00:00:00 2001 From: Mujtaba Alboori Date: Fri, 15 Feb 2019 08:36:03 -0800 Subject: [PATCH] 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 --- React/Base/RCTConvert.m | 1 + 1 file changed, 1 insertion(+) diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index fcb8ec167d1def..a391f5b9b566bf 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -355,6 +355,7 @@ + (NSLocale *)NSLocale:(id)json @"decimal-pad": @(UIKeyboardTypeDecimalPad), @"twitter": @(UIKeyboardTypeTwitter), @"web-search": @(UIKeyboardTypeWebSearch), + @"ascii-capable-number-pad": @(UIKeyboardTypeASCIICapableNumberPad), // Added for Android compatibility @"numeric": @(UIKeyboardTypeDecimalPad), }), UIKeyboardTypeDefault, integerValue)