Skip to content

Commit

Permalink
refactor: system font size as a default font size
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekChr committed Oct 9, 2024
1 parent f998a9a commit 246c550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Text/Text/RCTTextView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ - (CGPoint)calculateDrawingPointWithTextStorage:(NSTextStorage *)textStorage
contentFrame:(CGRect)contentFrame {
UIFont *font = [textStorage attribute:NSFontAttributeName atIndex:0 effectiveRange:NULL];
if (!font) {
font = [UIFont systemFontOfSize:14];
font = [UIFont systemFontOfSize:[UIFont systemFontSize]];
}

NSParagraphStyle *paragraphStyle = [textStorage attribute:NSParagraphStyleAttributeName atIndex:0 effectiveRange:NULL];
Expand Down

0 comments on commit 246c550

Please sign in to comment.