fix(android): KeyboardType now respects numbers (#9240)

This commit is contained in:
Nathanael Anderson
2021-02-26 18:23:50 -06:00
committed by GitHub
parent c04e1b59e5
commit f08fcb17b4
4 changed files with 24 additions and 6 deletions

View File

@ -27,6 +27,13 @@ export class TextField extends TextFieldBase {
setSecureAndKeyboardType(): void {
let inputType: number;
// Check for a passed in Number value
const value = +this.keyboardType;
if (!isNaN(value)) {
this._setInputType(value);
return;
}
// Password variations are supported only for Text and Number classes.
if (this.secure) {
if (this.keyboardType === 'number') {