Make BugReporting not pull in native module on require

Reviewed By: astreet

Differential Revision: D3322838

fbshipit-source-id: 4f12fda213b6a4ab7b19d3dafad7f31eb627f85a
This commit is contained in:
Alexander Blom 2016-05-19 12:49:53 -07:00 committed by Facebook Github Bot 9
parent 6a34c9c3da
commit 942b9332b2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,6 @@
*/
'use strict';
const BugReportingNativeModule = require('NativeModules').BugReporting;
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
const Map = require('Map');
const infoLog = require('infoLog');
@ -94,6 +93,7 @@ class BugReporting {
fileData[key] = callback();
}
infoLog('BugReporting extraData:', extraData);
const BugReportingNativeModule = require('NativeModules').BugReporting;
BugReportingNativeModule &&
BugReportingNativeModule.setExtraData &&
BugReportingNativeModule.setExtraData(extraData, fileData);