Skip to content

Commit 16d1c2a

Browse files
committed
chore: tsc fix
1 parent 4c226ef commit 16d1c2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/android/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,14 @@ export function getAttr(context: android.content.Context, id: string) {
251251

252252
export function getHorizontalGravity(textAlignment: CoreTypes.TextAlignmentType) {
253253
switch (textAlignment) {
254-
case 'initial':
255-
case 'left':
256-
return 8388611; //Gravity.START
257254
case 'center':
258255
return 1; //Gravity.CENTER_HORIZONTAL
259256
case 'right':
260257
return 8388613; //Gravity.END
258+
case 'initial':
259+
case 'left':
260+
default:
261+
return 8388611; //Gravity.START
261262
}
262263
}
263264
export function getVerticalGravity(textAlignment: VerticalTextAlignment) {

0 commit comments

Comments
 (0)