diff --git a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm index e486049ad4b..35aa4119b81 100644 --- a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +++ b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm @@ -64,10 +64,14 @@ static NSLineBreakMode RCTNSLineBreakModeFromEllipsizeMode(EllipsizeMode ellipsi layoutConstraints:(LayoutConstraints)layoutConstraints textStorage:(NSTextStorage *_Nullable)textStorage { - return [self measureNSAttributedString:[self _nsAttributedStringFromAttributedString:attributedString] - paragraphAttributes:paragraphAttributes - layoutConstraints:layoutConstraints - textStorage:textStorage]; + if (textStorage) { + return [self _measureTextStorage:textStorage]; + } else { + return [self measureNSAttributedString:[self _nsAttributedStringFromAttributedString:attributedString] + paragraphAttributes:paragraphAttributes + layoutConstraints:layoutConstraints + textStorage:nil]; + } } - (void)drawAttributedString:(AttributedString)attributedString