Skip to content

Commit 7372b98

Browse files
author
Tony Du
committed
Fix default scaling epsilon
1 parent d2e2dd5 commit 7372b98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/RNTextSize.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ - (dispatch_queue_t)methodQueue {
178178
[textStorage addLayoutManager:layoutManager];
179179

180180
NSMutableArray<NSNumber *> *result = [[NSMutableArray alloc] initWithCapacity:texts.count];
181-
const CGFloat epsilon = 0.001;
181+
182+
const CGFloat scaleMultiplier = _bridge ? _bridge.accessibilityManager.multiplier : 1.0;
183+
const CGFloat epsilon = scaleMultiplier != 1.0 ? 0.001 : 0;
182184

183185
for (int ix = 0; ix < texts.count; ix++) {
184186
NSString *text = texts[ix];

0 commit comments

Comments
 (0)