We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a77445a commit 931aedaCopy full SHA for 931aeda
2 files changed
packages/react-native-performance/src/index.ts
@@ -1,5 +1,4 @@
1
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
2
-import { createPerformance } from './performance';
3
import {
4
PerformanceReactNativeMark,
5
PerformanceMetric,
@@ -8,7 +7,7 @@ import {
8
7
installResourceLogger,
9
uninstallResourceLogger,
10
} from './resource-logger';
11
-const { PerformanceObserver, addEntry, performance } = createPerformance();
+import { PerformanceObserver, addEntry, performance } from './instance';
12
13
declare const global: { __turboModuleProxy: null | {} };
14
packages/react-native-performance/src/instance.ts
@@ -0,0 +1,3 @@
+import { createPerformance } from './performance';
+export const { PerformanceObserver, addEntry, performance } =
+ createPerformance();
0 commit comments