Skip to content

Commit

Permalink
Make BugReporting not pull in native module on require
Browse files Browse the repository at this point in the history
Reviewed By: astreet

Differential Revision: D3322838

fbshipit-source-id: 4f12fda213b6a4ab7b19d3dafad7f31eb627f85a
  • Loading branch information
lexs authored and Facebook Github Bot 9 committed May 19, 2016
1 parent 6a34c9c commit 942b933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/BugReporting/BugReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
'use strict';

const BugReportingNativeModule = require('NativeModules').BugReporting;
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
const Map = require('Map');
const infoLog = require('infoLog');
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 942b933

Please sign in to comment.