Skip to content

Commit 9504828

Browse files
committed
fix 0.77+ bridgeless detection
1 parent b5a0f32 commit 9504828

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.26.0",
3+
"version": "10.26.1",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/core.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const {
44
version: v,
55
} = require('react-native/Libraries/Core/ReactNativeVersion');
66
const RNVersion = `${v.major}.${v.minor}.${v.patch}`;
7-
const isTurboModuleEnabled = (global as any).__turboModuleProxy != null;
7+
const isTurboModuleEnabled =
8+
// https://github.com/facebook/react-native/pull/48362
9+
(global as any).__turboModuleProxy || (global as any).RN$Bridgeless;
810

911
export const PushyModule =
1012
Platform.OS === 'web'

0 commit comments

Comments
 (0)