diff --git a/Libraries/Text/Text/RCTTextView.m b/Libraries/Text/Text/RCTTextView.m index cf872397a327d2..3f64e313ab58f1 100644 --- a/Libraries/Text/Text/RCTTextView.m +++ b/Libraries/Text/Text/RCTTextView.m @@ -38,10 +38,8 @@ - (instancetype)initWithFrame:(CGRect)frame - (NSString *)description { - NSString *superDescription = super.description; - NSRange replacementRange = [superDescription rangeOfString:@">"]; - NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@; text: %@>", self.reactTag, _textStorage.string]; - return [superDescription stringByReplacingCharactersInRange:replacementRange withString:replacement]; + NSString *stringToAppend = [NSString stringWithFormat:@" reactTag: %@; text: %@", self.reactTag, _textStorage.string]; + return [[super description] stringByAppendingString:stringToAppend]; } - (void)setSelectable:(BOOL)selectable diff --git a/React/Views/RCTView.m b/React/Views/RCTView.m index eb30e9da667843..619509f9bd5665 100644 --- a/React/Views/RCTView.m +++ b/React/Views/RCTView.m @@ -452,10 +452,10 @@ - (void)accessibilityDecrement - (NSString *)description { - NSString *superDescription = super.description; - NSRange semicolonRange = [superDescription rangeOfString:@";"]; - NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@;", self.reactTag]; - return [superDescription stringByReplacingCharactersInRange:semicolonRange withString:replacement]; + return [[super description] stringByAppendingFormat:@" reactTag: %@; frame = %@; layer = %@", + self.reactTag, + NSStringFromCGRect(self.frame), + self.layer]; } #pragma mark - Statics for dealing with layoutGuides