1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-30 04:43:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

support 0.77+ (#482)

* 0.78 example

* fix 0.77+ bridgeless detection
This commit is contained in:
Sunny Luo
2025-03-06 22:33:39 +08:00
committed by GitHub
parent 4944b05378
commit 93f2d51c46
11 changed files with 676 additions and 666 deletions

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'