Skip to content

Commit

Permalink
ESM RCTNetworking
Browse files Browse the repository at this point in the history
Summary: Changelog: [General][Changed] - ESM RCTNetworking

Reviewed By: yungsters

Differential Revision: D42201538

fbshipit-source-id: 26139061550c8c86d02b688fa828d475036ac792
  • Loading branch information
lunaleaps authored and facebook-github-bot committed Jan 4, 2023
1 parent 0aece02 commit b606449
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Libraries/Network/RCTNetworking.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ class RCTNetworking extends NativeEventEmitter<$FlowFixMe> {
}
}

module.exports = (new RCTNetworking(): RCTNetworking);
export default (new RCTNetworking(): RCTNetworking);
2 changes: 1 addition & 1 deletion Libraries/Network/RCTNetworking.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ const RCTNetworking = {
},
};

module.exports = RCTNetworking;
export default RCTNetworking;
2 changes: 1 addition & 1 deletion Libraries/Network/XMLHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b606449

Please sign in to comment.