Skip to content

Commit ac6d9e0

Browse files
authored
Update RCTUITextView to use the systemFontSize for macOS (#1836) (#1837)
* Update RCTUITextView to use the systemFontSize for macOS * ifdef the function declaration as well
1 parent 6daa435 commit ac6d9e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/Text/TextInput/Multiline/RCTUITextView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ @implementation RCTUITextView {
2525
#endif // macOS]
2626
}
2727

28+
#if !TARGET_OS_OSX // [macOS]
2829
static UIFont *defaultPlaceholderFont()
2930
{
3031
return [UIFont systemFontOfSize:17];
3132
}
33+
#else // [macOS
34+
static NSFont *defaultPlaceholderFont()
35+
{
36+
return [NSFont systemFontOfSize:[NSFont systemFontSize]];
37+
}
38+
#endif // macOS]
3239

3340
static RCTUIColor *defaultPlaceholderColor() // [macOS]
3441
{

0 commit comments

Comments
 (0)