Make BugReporting not pull in native module on require
Reviewed By: astreet Differential Revision: D3322838 fbshipit-source-id: 4f12fda213b6a4ab7b19d3dafad7f31eb627f85a
This commit is contained in:
parent
6a34c9c3da
commit
942b9332b2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue