Skip to content

Commit 4276b0c

Browse files
committed
chore: fix tsc errors
1 parent 7ef9bcc commit 4276b0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/label.android.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@ type ClickableSpan = new (owner: Span) => android.text.style.ClickableSpan;
7373

7474
function getHorizontalGravity(textAlignment: CoreTypes.TextAlignmentType) {
7575
switch (textAlignment) {
76-
case 'initial':
77-
case 'left':
78-
return 8388611; //Gravity.START
7976
case 'center':
8077
return 1; //Gravity.CENTER_HORIZONTAL
8178
case 'right':
8279
return 8388613; //Gravity.END
80+
default:
81+
case 'initial':
82+
case 'left':
83+
return 8388611; //Gravity.START
8384
}
8485
}
8586
function getVerticalGravity(textAlignment: VerticalTextAlignment) {

0 commit comments

Comments
 (0)