Update and synchronize preloaded modules config
Reviewed By: davidaurelio Differential Revision: D5154657 fbshipit-source-id: cdf752d4a358ee6d4ff06aee74a71052a615c33e
This commit is contained in:
Родитель
48edba9e53
Коммит
2c85490aa2
|
@ -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>;
|
||||
|
|
Загрузка…
Ссылка в новой задаче