mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
[React Native] Update description on RCTText
This commit is contained in:
parent
6cf570db35
commit
caffd60a3f
@ -34,6 +34,14 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)description
|
||||
{
|
||||
NSString *superDescription = super.description;
|
||||
NSRange semicolonRange = [superDescription rangeOfString:@";"];
|
||||
NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@; text: %@", self.reactTag, self.textStorage.string];
|
||||
return [superDescription stringByReplacingCharactersInRange:semicolonRange withString:replacement];
|
||||
}
|
||||
|
||||
- (void)reactSetFrame:(CGRect)frame
|
||||
{
|
||||
// Text looks super weird if its frame is animated.
|
||||
|
Loading…
x
Reference in New Issue
Block a user