From 942b9332b2e9eb779e84d996648e66550965af82 Mon Sep 17 00:00:00 2001 From: Alexander Blom Date: Thu, 19 May 2016 12:49:53 -0700 Subject: [PATCH] Make BugReporting not pull in native module on require Reviewed By: astreet Differential Revision: D3322838 fbshipit-source-id: 4f12fda213b6a4ab7b19d3dafad7f31eb627f85a --- Libraries/BugReporting/BugReporting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/BugReporting/BugReporting.js b/Libraries/BugReporting/BugReporting.js index 9af291d6c..277f16b45 100644 --- a/Libraries/BugReporting/BugReporting.js +++ b/Libraries/BugReporting/BugReporting.js @@ -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);