File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
packages/react-native/Libraries/Text/Text Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -411,22 +411,7 @@ - (CGFloat)lastBaselineForSize:(CGSize)size
411411 }
412412 }];
413413
414- // Account for stroke width in baseline calculation
415- __block CGFloat strokeWidth = 0 ;
416- [attributedText enumerateAttribute: @" RCTTextStrokeWidth"
417- inRange: NSMakeRange (0 , attributedText.length)
418- options: 0
419- usingBlock: ^(id value, NSRange range, BOOL *stop) {
420- if (value && [value isKindOfClass: [NSNumber class ]]) {
421- CGFloat width = [value floatValue ];
422- if (width > 0 ) {
423- strokeWidth = MAX (strokeWidth, width);
424- *stop = YES ;
425- }
426- }
427- }];
428-
429- return size.height + maximumDescender + strokeWidth;
414+ return size.height + maximumDescender;
430415}
431416
432417static YGSize RCTTextShadowViewMeasure (
@@ -474,7 +459,6 @@ static YGSize RCTTextShadowViewMeasure(
474459
475460 if (strokeWidth > 0 ) {
476461 size.width += strokeWidth;
477- size.height += strokeWidth;
478462 }
479463
480464 size = (CGSize){
You can’t perform that action at this time.
0 commit comments