Files
react-native/packages/react-native/Libraries/Utilities/DebugEnvironment.js
T
Pieter De BaetsandFacebook GitHub Bot b35914de38 Remove references to global.nativeExtensions (#41260)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41260

This was introduced some experiments which are no longer relevant.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D50736166

fbshipit-source-id: 7c9ff571112127e6a9e317113c05c30483626076
2023-10-31 08:26:28 -07:00

17 lines
441 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
export let isAsyncDebugging: boolean = false;
if (__DEV__) {
// These native interfaces don't exist in asynchronous debugging environments.
isAsyncDebugging = !global.nativeCallSyncHook && !global.RN$Bridgeless;
}