mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 15:50:39 +08:00
[ReactNative] Updated RKText to new UIManager system
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
return [[RCTShadowText alloc] init];
|
||||
}
|
||||
|
||||
#pragma mark - View properties
|
||||
|
||||
RCT_REMAP_VIEW_PROPERTY(containerBackgroundColor, backgroundColor)
|
||||
RCT_CUSTOM_VIEW_PROPERTY(numberOfLines, RCTText)
|
||||
{
|
||||
@@ -34,6 +36,8 @@ RCT_CUSTOM_VIEW_PROPERTY(numberOfLines, RCTText)
|
||||
view.lineBreakMode = truncationMode;
|
||||
}
|
||||
|
||||
#pragma mark - Shadow properties
|
||||
|
||||
RCT_CUSTOM_SHADOW_PROPERTY(backgroundColor, RCTShadowText)
|
||||
{
|
||||
view.textBackgroundColor = json ? [RCTConvert UIColor:json] : defaultView.textBackgroundColor;
|
||||
|
||||
Reference in New Issue
Block a user