mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
This commit is contained in:
@@ -6,11 +6,11 @@ import { getColor } from '../../ui-helper';
|
||||
export function getNativeTextAlignment(label: labelModule.Label): string {
|
||||
switch (label.ios.textAlignment) {
|
||||
case NSTextAlignment.Left:
|
||||
return Enums.TextAlignment.left;
|
||||
return CoreTypes.TextAlignment.left;
|
||||
case NSTextAlignment.Center:
|
||||
return Enums.TextAlignment.center;
|
||||
return CoreTypes.TextAlignment.center;
|
||||
case NSTextAlignment.Right:
|
||||
return Enums.TextAlignment.right;
|
||||
return CoreTypes.TextAlignment.right;
|
||||
default:
|
||||
return 'unexpected value';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user