mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): type collisions with namespace (#8809)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import * as labelModule from '@nativescript/core/ui/label';
|
||||
import * as enums from '@nativescript/core/ui/enums';
|
||||
import { Enums } from '@nativescript/core';
|
||||
import * as colorModule from '@nativescript/core/color';
|
||||
import { getColor } from '../../ui-helper';
|
||||
|
||||
export function getNativeTextAlignment(label: labelModule.Label): string {
|
||||
switch (label.ios.textAlignment) {
|
||||
case NSTextAlignment.Left:
|
||||
return enums.TextAlignment.left;
|
||||
return Enums.TextAlignment.left;
|
||||
case NSTextAlignment.Center:
|
||||
return enums.TextAlignment.center;
|
||||
return Enums.TextAlignment.center;
|
||||
case NSTextAlignment.Right:
|
||||
return enums.TextAlignment.right;
|
||||
return Enums.TextAlignment.right;
|
||||
default:
|
||||
return 'unexpected value';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user