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);