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