Skip to content

Commit 2ed5ae9

Browse files
authored
[0.74-stable] Update deprecated enums in RCTTextPrimitivesConversions.h (#2377) (#2393)
Backport of #2377
1 parent fc6c9e6 commit 2ed5ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextPrimitivesConversions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ inline static NSUnderlineStyle RCTNSUnderlineStyleFromTextDecorationStyle(
8989
case facebook::react::TextDecorationStyle::Double:
9090
return NSUnderlineStyleDouble;
9191
case facebook::react::TextDecorationStyle::Dashed:
92-
return NSUnderlinePatternDash | NSUnderlineStyleSingle;
92+
return NSUnderlineStylePatternDash | NSUnderlineStyleSingle; // [macOS]
9393
case facebook::react::TextDecorationStyle::Dotted:
94-
return NSUnderlinePatternDot | NSUnderlineStyleSingle;
94+
return NSUnderlineStylePatternDot | NSUnderlineStyleSingle; // [macOS]
9595
}
9696
}
9797

0 commit comments

Comments
 (0)