mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Log column number in RCTRedBox messages
Reviewed By: @jspahrsummers Differential Revision: D2489364
This commit is contained in:
committed by
facebook-github-bot-4
parent
e727fc817b
commit
3a664a0008
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user