mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
FIX: setInputType of undefined in Android
This commit is contained in:
@@ -4,7 +4,7 @@ export * from "./text-field-common";
|
||||
|
||||
export class TextField extends TextFieldBase {
|
||||
public _configureEditText() {
|
||||
let nativeView = this.nativeView;
|
||||
let nativeView = this.android;
|
||||
nativeView.setInputType(android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_VARIATION_NORMAL | android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
|
||||
nativeView.setLines(1);
|
||||
nativeView.setMaxLines(1);
|
||||
|
||||
Reference in New Issue
Block a user