mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update deprecated enums in RCTTextPrimitivesConversions.h (#49648)
Summary: `NSUnderlinePatternDash`/`NSUnderlinePatternDot` are [deprecated](https://developer.apple.com/documentation/uikit/nsunderlinepatterndash). Use their drop-in replacements (`NSUnderlineStylePatternDash` and `NSUnderlineStylePatternDot`) instead. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [IOS] [DEPRECATED] - Update deprecated enums in RCTTextPrimitivesConversions.h For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/49648 Test Plan: Local build Reviewed By: cortinico Differential Revision: D70153675 Pulled By: cipolleschi fbshipit-source-id: e64c9df1a5282a3f33f742a455c64c002f0c8044
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a033cf9d5e
commit
4121d24454
+2
-2
@@ -107,9 +107,9 @@ inline static NSUnderlineStyle RCTNSUnderlineStyleFromTextDecorationStyle(
|
||||
case facebook::react::TextDecorationStyle::Double:
|
||||
return NSUnderlineStyleDouble;
|
||||
case facebook::react::TextDecorationStyle::Dashed:
|
||||
return NSUnderlinePatternDash | NSUnderlineStyleSingle;
|
||||
return NSUnderlineStylePatternDash | NSUnderlineStyleSingle;
|
||||
case facebook::react::TextDecorationStyle::Dotted:
|
||||
return NSUnderlinePatternDot | NSUnderlineStyleSingle;
|
||||
return NSUnderlineStylePatternDot | NSUnderlineStyleSingle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user