[RN] Show only file name in RedBox

This commit is contained in:
Alex Kotliarskyi 2015-08-19 16:31:21 -07:00
parent 24689006ab
commit c5c25c15ea

View File

@ -206,10 +206,10 @@ RCT_NOT_IMPLEMENTED(-initWithCoder:(NSCoder *)aDecoder)
cell.textLabel.text = stackFrame[@"methodName"];
NSString *fileAndLine = stackFrame[@"file"];
NSString *fileAndLine = [stackFrame[@"file"] lastPathComponent];
if (fileAndLine) {
fileAndLine = [fileAndLine stringByAppendingFormat:@":%@", stackFrame[@"lineNumber"]];
cell.detailTextLabel.text = cell.detailTextLabel.text = fileAndLine;
cell.detailTextLabel.text = fileAndLine;
}
return cell;
}