fix(android): version Android text-align justify (#9620)

This commit is contained in:
Juan de Dios Martínez Vallejo
2021-10-20 18:24:53 +02:00
committed by GitHub
parent 8878c3bc6b
commit 2ad280deb0

View File

@@ -296,7 +296,7 @@ export class TextBase extends TextBaseCommon {
this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity); this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity);
break; break;
} }
if (android.os.Build.VERSION.SDK_INT >= 25) { if (android.os.Build.VERSION.SDK_INT >= 26) {
if (value === 'justify') { if (value === 'justify') {
this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD); this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD);
} else { } else {