We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c226ef commit 16d1c2aCopy full SHA for 16d1c2a
src/core/android/utils.ts
@@ -251,13 +251,14 @@ export function getAttr(context: android.content.Context, id: string) {
251
252
export function getHorizontalGravity(textAlignment: CoreTypes.TextAlignmentType) {
253
switch (textAlignment) {
254
- case 'initial':
255
- case 'left':
256
- return 8388611; //Gravity.START
257
case 'center':
258
return 1; //Gravity.CENTER_HORIZONTAL
259
case 'right':
260
return 8388613; //Gravity.END
+ case 'initial':
+ case 'left':
+ default:
261
+ return 8388611; //Gravity.START
262
}
263
264
export function getVerticalGravity(textAlignment: VerticalTextAlignment) {
0 commit comments