Change framework event seperator to .
Summary: Its easier this way since this is how they come out of android internally, also a bit nicer to display the full string this way Reviewed By: lblasa Differential Revision: D48346954 fbshipit-source-id: 997dd3922159683fcdf4b5f5f288702a5d998dc4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7b6aff245a
commit
3cd6079c24
@@ -17,6 +17,7 @@ import {FrameworkEvent, ClientNode} from '../../../ClientTypes';
|
||||
import React, {ReactNode} from 'react';
|
||||
import {StackTraceInspector} from './StackTraceInspector';
|
||||
import {Descriptions, Tag} from 'antd';
|
||||
import {frameworkEventSeparator} from '../../shared/FrameworkEventsTreeSelect';
|
||||
|
||||
type Props = {
|
||||
node: ClientNode;
|
||||
@@ -131,7 +132,7 @@ function formatDuration(nanoseconds: number): string {
|
||||
}
|
||||
}
|
||||
function eventTypeToName(eventType: string) {
|
||||
return eventType.slice(eventType.lastIndexOf('.') + 1);
|
||||
return eventType.slice(eventType.lastIndexOf(frameworkEventSeparator) + 1);
|
||||
}
|
||||
|
||||
function threadToColor(thread?: string) {
|
||||
|
||||
Reference in New Issue
Block a user