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 d2e2dd5 commit 7372b98Copy full SHA for 7372b98
ios/RNTextSize.m
@@ -178,7 +178,9 @@ - (dispatch_queue_t)methodQueue {
178
[textStorage addLayoutManager:layoutManager];
179
180
NSMutableArray<NSNumber *> *result = [[NSMutableArray alloc] initWithCapacity:texts.count];
181
- const CGFloat epsilon = 0.001;
+
182
+ const CGFloat scaleMultiplier = _bridge ? _bridge.accessibilityManager.multiplier : 1.0;
183
+ const CGFloat epsilon = scaleMultiplier != 1.0 ? 0.001 : 0;
184
185
for (int ix = 0; ix < texts.count; ix++) {
186
NSString *text = texts[ix];
0 commit comments