FIX: setInputType of undefined in Android

This commit is contained in:
vakrilov
2016-12-21 14:26:27 +02:00
parent ae0716a242
commit 432a849d99

View File

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