Skip to content

Commit 931aeda

Browse files
committed
chore: extract performance singleton to separate file
1 parent a77445a commit 931aeda

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ā€Žpackages/react-native-performance/src/index.tsā€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
2-
import { createPerformance } from './performance';
32
import {
43
PerformanceReactNativeMark,
54
PerformanceMetric,
@@ -8,7 +7,7 @@ import {
87
installResourceLogger,
98
uninstallResourceLogger,
109
} from './resource-logger';
11-
const { PerformanceObserver, addEntry, performance } = createPerformance();
10+
import { PerformanceObserver, addEntry, performance } from './instance';
1211

1312
declare const global: { __turboModuleProxy: null | {} };
1413

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { createPerformance } from './performance';
2+
export const { PerformanceObserver, addEntry, performance } =
3+
createPerformance();

0 commit comments

Comments
Ā (0)
⚔