diff --git a/Libraries/Network/RCTNetworking.android.js b/Libraries/Network/RCTNetworking.android.js index 8959dbe3e06e22..69458bc76cd538 100644 --- a/Libraries/Network/RCTNetworking.android.js +++ b/Libraries/Network/RCTNetworking.android.js @@ -91,4 +91,4 @@ class RCTNetworking extends NativeEventEmitter<$FlowFixMe> { } } -module.exports = (new RCTNetworking(): RCTNetworking); +export default (new RCTNetworking(): RCTNetworking); diff --git a/Libraries/Network/RCTNetworking.ios.js b/Libraries/Network/RCTNetworking.ios.js index 08e6208d1cc865..4b49b505695e44 100644 --- a/Libraries/Network/RCTNetworking.ios.js +++ b/Libraries/Network/RCTNetworking.ios.js @@ -109,4 +109,4 @@ const RCTNetworking = { }, }; -module.exports = RCTNetworking; +export default RCTNetworking; diff --git a/Libraries/Network/XMLHttpRequest.js b/Libraries/Network/XMLHttpRequest.js index abf008c6a0c02a..22547c5e25b7cd 100644 --- a/Libraries/Network/XMLHttpRequest.js +++ b/Libraries/Network/XMLHttpRequest.js @@ -13,10 +13,10 @@ import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger'; import {type EventSubscription} from '../vendor/emitter/EventEmitter'; +import RCTNetworking from './RCTNetworking'; const BlobManager = require('../Blob/BlobManager'); const GlobalPerformanceLogger = require('../Utilities/GlobalPerformanceLogger'); -const RCTNetworking = require('./RCTNetworking'); const base64 = require('base64-js'); const EventTarget = require('event-target-shim'); const invariant = require('invariant'); diff --git a/index.js b/index.js index 80ee3be4e513bc..5f4e3fda480e50 100644 --- a/index.js +++ b/index.js @@ -292,7 +292,7 @@ module.exports = { return require('./Libraries/EventEmitter/NativeEventEmitter').default; }, get Networking(): Networking { - return require('./Libraries/Network/RCTNetworking'); + return require('./Libraries/Network/RCTNetworking').default; }, get PanResponder(): PanResponder { return require('./Libraries/Interaction/PanResponder');