[React Native] Implement -(recursiveD|d)escription for RCT(Shadow)View

This commit is contained in:
Alex Akers
2015-06-15 12:05:04 -07:00
parent 5d6a89bc61
commit 3ce8b1a1c8
4 changed files with 48 additions and 0 deletions

View File

@@ -20,4 +20,10 @@
}
}
- (NSString *)description
{
NSString *superDescription = super.description;
return [[superDescription substringToIndex:superDescription.length - 1] stringByAppendingFormat:@"; text: %@>", self.text];
}
@end

View File

@@ -54,6 +54,12 @@ static css_dim_t RCTMeasure(void *context, float width)
return self;
}
- (NSString *)description
{
NSString *superDescription = super.description;
return [[superDescription substringToIndex:superDescription.length - 1] stringByAppendingFormat:@"; text: %@>", [self attributedString].string];
}
- (NSDictionary *)processUpdatedProperties:(NSMutableSet *)applierBlocks
parentProperties:(NSDictionary *)parentProperties
{