Skip to content

Commit

Permalink
iOS support keyboardType ASCIICapableNumberPad (#20597)
Browse files Browse the repository at this point in the history
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: #20597

Differential Revision: D14103498

Pulled By: cpojer

fbshipit-source-id: b0aa17f3e527734c6e90eadc73c96db4dd002698
  • Loading branch information
MuBoori authored and facebook-github-bot committed Feb 15, 2019
1 parent da023c5 commit 65cfb9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Base/RCTConvert.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 65cfb9a

Please sign in to comment.