We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981ab97 commit d2e2dd5Copy full SHA for d2e2dd5
ios/RNTextSize.m
@@ -616,8 +616,9 @@ - (NSTextContainer *)textContainerFromOptions:(NSDictionary * _Nullable)options
616
const CGFloat lineHeight = CGFloatValueFrom(options[@"lineHeight"]);
617
if (!isnan(lineHeight)) {
618
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
619
- [style setMinimumLineHeight:lineHeight];
620
- [style setMaximumLineHeight:lineHeight];
+ const CGFloat scaleMultiplier = _bridge ? _bridge.accessibilityManager.multiplier : 1.0;
+ [style setMinimumLineHeight:lineHeight * scaleMultiplier];
621
+ [style setMaximumLineHeight:lineHeight * scaleMultiplier];
622
[attributes setObject:style forKey:NSParagraphStyleAttributeName];
623
}
624
0 commit comments