mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +00:00
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';
|
'use strict';
|
||||||
|
|
||||||
const BugReportingNativeModule = require('NativeModules').BugReporting;
|
|
||||||
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||||
const Map = require('Map');
|
const Map = require('Map');
|
||||||
const infoLog = require('infoLog');
|
const infoLog = require('infoLog');
|
||||||
@ -94,6 +93,7 @@ class BugReporting {
|
|||||||
fileData[key] = callback();
|
fileData[key] = callback();
|
||||||
}
|
}
|
||||||
infoLog('BugReporting extraData:', extraData);
|
infoLog('BugReporting extraData:', extraData);
|
||||||
|
const BugReportingNativeModule = require('NativeModules').BugReporting;
|
||||||
BugReportingNativeModule &&
|
BugReportingNativeModule &&
|
||||||
BugReportingNativeModule.setExtraData &&
|
BugReportingNativeModule.setExtraData &&
|
||||||
BugReportingNativeModule.setExtraData(extraData, fileData);
|
BugReportingNativeModule.setExtraData(extraData, fileData);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user