Skip to content

Commit

Permalink
Match the ios number input type behavior to what is said in the docs (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmc authored Jan 11, 2019
1 parent 358a24c commit 3f99878
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ static UIKeyboardType ToUIKeyboardType(NSDictionary* type) {
if ([inputType isEqualToString:@"TextInputType.number"]) {
if ([type[@"signed"] boolValue])
return UIKeyboardTypeNumbersAndPunctuation;
return UIKeyboardTypeDecimalPad;
if ([type[@"decimal"] boolValue])
return UIKeyboardTypeDecimalPad;
return UIKeyboardTypeNumberPad;
}
if ([inputType isEqualToString:@"TextInputType.phone"])
return UIKeyboardTypePhonePad;
Expand Down

0 comments on commit 3f99878

Please sign in to comment.