From 1693c2a62d1cbbda60adb3be8a031285cd3548cb Mon Sep 17 00:00:00 2001 From: William Candillon Date: Wed, 18 Dec 2024 10:06:27 +0100 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=93=9D):=20fix=20bug=20with=20textAli?= =?UTF-8?q?gn=20property=20in=20paragraph=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/skia/src/skia/web/JsiSkParagraphStyle.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/skia/src/skia/web/JsiSkParagraphStyle.ts b/packages/skia/src/skia/web/JsiSkParagraphStyle.ts index f4483f3992..274e3a2752 100644 --- a/packages/skia/src/skia/web/JsiSkParagraphStyle.ts +++ b/packages/skia/src/skia/web/JsiSkParagraphStyle.ts @@ -19,9 +19,7 @@ export class JsiSkParagraphStyle { ps.replaceTabCharacters = value.replaceTabCharacters ?? ps.replaceTabCharacters; ps.textAlign = - value.textAlign !== undefined - ? { value: value.textAlign } - : undefined ?? ps.textAlign; + value.textAlign !== undefined ? { value: value.textAlign } : ps.textAlign; ps.textDirection = value.textDirection !== undefined ? { value: value.textDirection === TextDirection.LTR ? 1 : 0 }