mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Adding `__IS_NATIVE__` global, which will be used for forking backend implementation. Will only be set to `true` for `react-devtools-core` package, which is used by `react-native`. Ideally, we should name it `react-devtools-native`, and keep `react-devtools-core` as host-agnostic. With this change, the next release of `react-devtools-core` should append component stack as Error object, not as string, and should add `(<anonymous>)` suffix to component stack frames.
19 lines
464 B
JavaScript
19 lines
464 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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
declare const __EXTENSION__: boolean;
|
|
declare const __TEST__: boolean;
|
|
|
|
declare const __IS_FIREFOX__: boolean;
|
|
declare const __IS_CHROME__: boolean;
|
|
declare const __IS_EDGE__: boolean;
|
|
declare const __IS_NATIVE__: boolean;
|