mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 12:25:59 +08:00
<Text> module add textDecoration style attributes
Summary: This is simply a rebased and squashed version of @KJlmfe's PR over at https://github.com/facebook/react-native/pull/845 It was actually already squashed into one commit, but for some reason that was hard to see from the original PR. Closes https://github.com/facebook/react-native/pull/1869 Github Author: KJlmfe <kjlmfe@gmail.com>
This commit is contained in:
@@ -216,6 +216,20 @@ RCT_ENUM_CONVERTER(NSTextAlignment, (@{
|
||||
@"justify": @(NSTextAlignmentJustified),
|
||||
}), NSTextAlignmentNatural, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(NSUnderlineStyle, (@{
|
||||
@"solid": @(NSUnderlineStyleSingle),
|
||||
@"double": @(NSUnderlineStyleDouble),
|
||||
@"dotted": @(NSUnderlinePatternDot | NSUnderlineStyleSingle),
|
||||
@"dashed": @(NSUnderlinePatternDash | NSUnderlineStyleSingle),
|
||||
}), NSUnderlineStyleSingle, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(RCTTextDecorationLineType, (@{
|
||||
@"none": @(RCTTextDecorationLineTypeNone),
|
||||
@"underline": @(RCTTextDecorationLineTypeUnderline),
|
||||
@"line-through": @(RCTTextDecorationLineTypeStrikethrough),
|
||||
@"underline line-through": @(RCTTextDecorationLineTypeUnderlineStrikethrough),
|
||||
}), RCTTextDecorationLineTypeNone, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(NSWritingDirection, (@{
|
||||
@"auto": @(NSWritingDirectionNatural),
|
||||
@"ltr": @(NSWritingDirectionLeftToRight),
|
||||
|
||||
Reference in New Issue
Block a user