diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index bde6840b596..65f281db5f7 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -9863,7 +9863,7 @@ declare export default class Performance { endMark?: string ): PerformanceMeasure; clearMeasures(measureName?: string): void; - now(): DOMHighResTimeStamp; + now: () => DOMHighResTimeStamp; getEntries(): PerformanceEntryList; getEntriesByType(entryType: PerformanceEntryType): PerformanceEntryList; getEntriesByName( diff --git a/packages/react-native/src/private/webapis/performance/Performance.js b/packages/react-native/src/private/webapis/performance/Performance.js index 98d31db72fe..c889da2468d 100644 --- a/packages/react-native/src/private/webapis/performance/Performance.js +++ b/packages/react-native/src/private/webapis/performance/Performance.js @@ -226,9 +226,7 @@ export default class Performance { * Returns a double, measured in milliseconds. * https://developer.mozilla.org/en-US/docs/Web/API/Performance/now */ - now(): DOMHighResTimeStamp { - return getCurrentTimeStamp(); - } + now: () => DOMHighResTimeStamp = getCurrentTimeStamp; /** * An extension that allows to get back to JS all currently logged marks/measures