From 432a849d9923235dfceb4c40988a742eecab392a Mon Sep 17 00:00:00 2001 From: vakrilov Date: Wed, 21 Dec 2016 14:26:27 +0200 Subject: [PATCH] FIX: setInputType of undefined in Android --- tns-core-modules/ui/text-field/text-field.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/text-field/text-field.android.ts b/tns-core-modules/ui/text-field/text-field.android.ts index 72342b117..3aac761db 100644 --- a/tns-core-modules/ui/text-field/text-field.android.ts +++ b/tns-core-modules/ui/text-field/text-field.android.ts @@ -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);