DebugEnvironment.js 500 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. */
  10. 'use strict';
  11. export let isAsyncDebugging: boolean = false;
  12. if (__DEV__) {
  13. // These native interfaces don't exist in asynchronous debugging environments.
  14. isAsyncDebugging =
  15. !global.nativeExtensions &&
  16. !global.nativeCallSyncHook &&
  17. !global.RN$Bridgeless;
  18. }