mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Add property mapping for borderStyle from JS to RCTView (iOS)
Reviewed By: nicklockwood Differential Revision: D2540321 fb-gh-sync-id: 57316f7b8dc734ee784179dbfde83e6034827819
This commit is contained in:
committed by
facebook-github-bot-5
parent
765801dfc2
commit
a26b89f8bd
@@ -12,6 +12,7 @@
|
||||
|
||||
#import "Layout.h"
|
||||
#import "RCTAnimationType.h"
|
||||
#import "RCTBorderStyle.h"
|
||||
#import "RCTTextDecorationLineType.h"
|
||||
#import "RCTDefines.h"
|
||||
#import "RCTLog.h"
|
||||
@@ -140,6 +141,7 @@ typedef BOOL css_clip_t, css_backface_visibility_t;
|
||||
|
||||
+ (RCTPointerEvents)RCTPointerEvents:(id)json;
|
||||
+ (RCTAnimationType)RCTAnimationType:(id)json;
|
||||
+ (RCTBorderStyle)RCTBorderStyle:(id)json;
|
||||
+ (RCTTextDecorationLineType)RCTTextDecorationLineType:(id)json;
|
||||
|
||||
@end
|
||||
|
||||
@@ -229,6 +229,12 @@ RCT_ENUM_CONVERTER(NSUnderlineStyle, (@{
|
||||
@"dashed": @(NSUnderlinePatternDash | NSUnderlineStyleSingle),
|
||||
}), NSUnderlineStyleSingle, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(RCTBorderStyle, (@{
|
||||
@"solid": @(RCTBorderStyleSolid),
|
||||
@"dotted": @(RCTBorderStyleDotted),
|
||||
@"dashed": @(RCTBorderStyleDashed),
|
||||
}), RCTBorderStyleSolid, integerValue)
|
||||
|
||||
RCT_ENUM_CONVERTER(RCTTextDecorationLineType, (@{
|
||||
@"none": @(RCTTextDecorationLineTypeNone),
|
||||
@"underline": @(RCTTextDecorationLineTypeUnderline),
|
||||
|
||||
Reference in New Issue
Block a user