/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; /** * Sets up developer tools for React Native. * You can use this module directly, or just require InitializeCore. */ if (__DEV__) { if (!global.__RCTProfileIsProfiling) { // not when debugging in chrome // TODO(t12832058) This check is broken if (!window.document) { require('setupDevtools'); } // Set up inspector const JSInspector = require('JSInspector'); JSInspector.registerAgent(require('NetworkAgent')); } }