diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index ecf3fd921..733a43713 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -193,9 +193,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) } cell.textLabel.text = stackFrame[@"methodName"]; - - NSString *fileAndLine = [stackFrame[@"file"] lastPathComponent]; - cell.detailTextLabel.text = fileAndLine ? [fileAndLine stringByAppendingFormat:@":%@", stackFrame[@"lineNumber"]] : nil; + cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %@:%@", + [stackFrame[@"file"] lastPathComponent], stackFrame[@"lineNumber"], stackFrame[@"column"]]; return cell; }