Skip to content

Commit

Permalink
fix(πŸ“): fix bug with textAlign property in paragraph style (#2821)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Dec 18, 2024
1 parent b7a55c5 commit bce4183
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/skia/src/skia/web/JsiSkParagraphStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit bce4183

Please sign in to comment.