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 4bfc56dCopy full SHA for 4bfc56d
packages/react-native-performance/src/index.ts
@@ -10,9 +10,13 @@ import {
10
} from './resource-logger';
11
const { PerformanceObserver, addEntry, performance } = createPerformance();
12
13
-declare const global: { __turboModuleProxy: null | {} };
+declare const global: {
14
+ __turboModuleProxy: null | {};
15
+ RN$Bridgeless?: boolean;
16
+};
17
-const isTurboModuleEnabled = global.__turboModuleProxy != null;
18
+const isTurboModuleEnabled =
19
+ global.RN$Bridgeless || global.__turboModuleProxy != null;
20
21
const RNPerformanceManager = isTurboModuleEnabled
22
? require('./NativeRNPerformanceManager').default
0 commit comments