mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix TypeScript 1.8 compile errors. Get rid of "ui" imports.
This commit is contained in:
@@ -36,16 +36,12 @@ export function getNativeTextAlignment(textView: textViewModule.TextView): strin
|
||||
switch (textView.ios.textAlignment) {
|
||||
case NSTextAlignment.NSTextAlignmentLeft:
|
||||
return enums.TextAlignment.left;
|
||||
break;
|
||||
case NSTextAlignment.NSTextAlignmentCenter:
|
||||
return enums.TextAlignment.center;
|
||||
break;
|
||||
case NSTextAlignment.NSTextAlignmentRight:
|
||||
return enums.TextAlignment.right;
|
||||
break;
|
||||
default:
|
||||
return "unexpected value";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,4 +50,4 @@ export function typeTextNatively(textView: textViewModule.TextView, text: string
|
||||
|
||||
// Setting the text will not trigger the delegate method, so we have to do it by hand.
|
||||
textView.ios.delegate.textViewDidEndEditing(textView.ios);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user