1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 07:31:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix 0.77+ bridgeless detection

This commit is contained in:
sunnylqm
2025-03-06 22:32:24 +08:00
parent b5a0f32640
commit 95048281a0
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "10.26.0",
"version": "10.26.1",
"description": "react-native hot update",
"main": "src/index",
"scripts": {

View File

@@ -4,7 +4,9 @@ const {
version: v,
} = require('react-native/Libraries/Core/ReactNativeVersion');
const RNVersion = `${v.major}.${v.minor}.${v.patch}`;
const isTurboModuleEnabled = (global as any).__turboModuleProxy != null;
const isTurboModuleEnabled =
// https://github.com/facebook/react-native/pull/48362
(global as any).__turboModuleProxy || (global as any).RN$Bridgeless;
export const PushyModule =
Platform.OS === 'web'