Skip to content

Commit aa1597d

Browse files
authored
Merge 13d499a into 7be1f99
2 parents 7be1f99 + 13d499a commit aa1597d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/src/js/utils/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function isHermesEnabled(): boolean {
1111

1212
/** Checks if the React Native TurboModules are enabled */
1313
export function isTurboModuleEnabled(): boolean {
14-
return RN_GLOBAL_OBJ.__turboModuleProxy != null;
14+
return RN_GLOBAL_OBJ.RN$Bridgeless === true || RN_GLOBAL_OBJ.__turboModuleProxy != null;
1515
}
1616

1717
/** Checks if the React Native Fabric renderer is running */

packages/core/src/js/utils/worldwide.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
2020
};
2121
Promise: unknown;
2222
__turboModuleProxy: unknown;
23+
RN$Bridgeless: unknown;
2324
nativeFabricUIManager: unknown;
2425
ErrorUtils?: ErrorUtils;
2526
expo?: ExpoGlobalObject;

0 commit comments

Comments
 (0)