mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 07:31:38 +08:00
fix 0.77+ bridgeless detection
This commit is contained in:
@@ -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": {
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user