UNPKG

699 BJavaScriptView Raw
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 * @flow strict-local
8 * @format
9 */
10'use strict';
11
12/**
13 * Sets up developer tools for React Native.
14 * You can use this module directly, or just require InitializeCore.
15 */
16if (__DEV__) {
17 if (!global.__RCTProfileIsProfiling) {
18 // not when debugging in chrome
19 // TODO(t12832058) This check is broken
20 if (!window.document) {
21 require('setupDevtools');
22 }
23
24 // Set up inspector
25 const JSInspector = require('JSInspector');
26 JSInspector.registerAgent(require('NetworkAgent'));
27 }
28}