Skip to content

Commit c950693

Browse files
authored
chore: extract performance singleton to separate file (#119)
1 parent bc4c233 commit c950693

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)
⚔