Skip to content

Commit 2e38dda

Browse files
authored
Update fontSize handling in index.ios.ts
Refactor fontSize assignment to remove fallback.
1 parent ee679df commit 2e38dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export function createSpannableDetails(span: any, index, parentView: any, parent
247247
autoFontSizeEnabled,
248248
iosFont,
249249
realFontSize,
250-
fontSize: fontSize || /* iosFont?.pointSize */, // testing for fontSize undefined to be defined by canvas
250+
fontSize: fontSize/* || iosFont?.pointSize */, // testing for fontSize undefined to be defined by canvas
251251
realMaxFontSize,
252252
backgroundColor: backgroundcolor ? (backgroundcolor instanceof Color ? backgroundcolor.ios : new Color(backgroundcolor).ios) : null,
253253
color: textColor ? (textColor instanceof Color ? textColor.ios : new Color(textColor).ios) : null,

0 commit comments

Comments
 (0)