Update and synchronize preloaded modules config

Reviewed By: davidaurelio

Differential Revision: D5154657

fbshipit-source-id: cdf752d4a358ee6d4ff06aee74a71052a615c33e
This commit is contained in:
Pieter De Baets 2017-06-06 03:53:34 -07:00 коммит произвёл Facebook Github Bot
Родитель 48edba9e53
Коммит 2c85490aa2
2 изменённых файлов: 5 добавлений и 11 удалений

Просмотреть файл

@ -213,12 +213,12 @@ if (__DEV__) {
}
require('RCTDebugComponentOwnership');
}
}
// Set up inspector
if (__DEV__) {
if (!global.__RCTProfileIsProfiling) {
// In order to use Cmd+P to record/dump perf data, we need to make sure
// this module is available in the bundle
require('RCTRenderingPerf');
// Set up inspector
const JSInspector = require('JSInspector');
JSInspector.registerAgent(require('NetworkAgent'));
}

Просмотреть файл

@ -21,12 +21,6 @@ const infoLog = require('infoLog');
const invariant = require('fbjs/lib/invariant');
const renderApplication = require('renderApplication');
if (__DEV__) {
// In order to use Cmd+P to record/dump perf data, we need to make sure
// this module is available in the bundle
require('RCTRenderingPerf');
}
type Task = (taskData: any) => Promise<void>;
type TaskProvider = () => Task;
export type ComponentProvider = () => ReactClass<any>;