mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 09:01:38 +08:00
fix 0.77+ bridgeless detection
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.26.0",
|
"version": "10.26.1",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -4,7 +4,9 @@ const {
|
|||||||
version: v,
|
version: v,
|
||||||
} = require('react-native/Libraries/Core/ReactNativeVersion');
|
} = require('react-native/Libraries/Core/ReactNativeVersion');
|
||||||
const RNVersion = `${v.major}.${v.minor}.${v.patch}`;
|
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 =
|
export const PushyModule =
|
||||||
Platform.OS === 'web'
|
Platform.OS === 'web'
|
||||||
|
Reference in New Issue
Block a user