diff --git a/packages/react-native/Libraries/WebPerformance/PerformanceEventTiming.js b/packages/react-native/Libraries/WebPerformance/PerformanceEventTiming.js index 609f5bc1041857..9f2fa2bfcb8f17 100644 --- a/packages/react-native/Libraries/WebPerformance/PerformanceEventTiming.js +++ b/packages/react-native/Libraries/WebPerformance/PerformanceEventTiming.js @@ -20,7 +20,7 @@ export type PerformanceEventTimingJSON = { ... }; -export class PerformanceEventTiming extends PerformanceEntry { +export default class PerformanceEventTiming extends PerformanceEntry { processingStart: HighResTimeStamp; processingEnd: HighResTimeStamp; interactionId: number; diff --git a/packages/react-native/Libraries/WebPerformance/PerformanceObserver.js b/packages/react-native/Libraries/WebPerformance/PerformanceObserver.js index 89d6e483d91da4..8114257be1d6ae 100644 --- a/packages/react-native/Libraries/WebPerformance/PerformanceObserver.js +++ b/packages/react-native/Libraries/WebPerformance/PerformanceObserver.js @@ -13,6 +13,7 @@ import type {HighResTimeStamp, PerformanceEntryType} from './PerformanceEntry'; import warnOnce from '../Utilities/warnOnce'; import NativePerformanceObserver from './NativePerformanceObserver'; import {PerformanceEntry} from './PerformanceEntry'; +import PerformanceEventTiming from './PerformanceEventTiming'; import { performanceEntryTypeToRaw, rawToPerformanceEntry, @@ -332,3 +333,5 @@ function union( function difference(a: $ReadOnlySet, b: $ReadOnlySet): Set { return new Set([...a].filter(x => !b.has(x))); } + +export {PerformanceEventTiming}; diff --git a/packages/react-native/Libraries/WebPerformance/RawPerformanceEntry.js b/packages/react-native/Libraries/WebPerformance/RawPerformanceEntry.js index c9f3c493f4567c..767a8bdd61795f 100644 --- a/packages/react-native/Libraries/WebPerformance/RawPerformanceEntry.js +++ b/packages/react-native/Libraries/WebPerformance/RawPerformanceEntry.js @@ -15,7 +15,7 @@ import type { import type {PerformanceEntryType} from './PerformanceEntry'; import {PerformanceEntry} from './PerformanceEntry'; -import {PerformanceEventTiming} from './PerformanceEventTiming'; +import PerformanceEventTiming from './PerformanceEventTiming'; export const RawPerformanceEntryTypeValues = { UNDEFINED: 0,