[ReactNative] Updated RKText to new UIManager system

This commit is contained in:
Nick Lockwood
2015-03-17 07:04:39 -07:00
parent 1decb7e1cb
commit 18d1805695
4 changed files with 13 additions and 4 deletions

View File

@@ -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;