mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
[RN] Show only file name in RedBox
This commit is contained in:
parent
24689006ab
commit
c5c25c15ea
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user