diff --git a/packages/react-native/Libraries/Blob/FileReader.js b/packages/react-native/Libraries/Blob/FileReader.js index 3e20afe5c6e1a7..f8154bd237368f 100644 --- a/packages/react-native/Libraries/Blob/FileReader.js +++ b/packages/react-native/Libraries/Blob/FileReader.js @@ -12,8 +12,7 @@ import type Blob from './Blob'; import NativeFileReaderModule from './NativeFileReaderModule'; import {toByteArray} from 'base64-js'; - -const EventTarget = require('event-target-shim'); +import EventTarget from 'event-target-shim'; type ReadyState = | 0 // EMPTY diff --git a/packages/react-native/Libraries/Network/XMLHttpRequest.js b/packages/react-native/Libraries/Network/XMLHttpRequest.js index f66d194863a457..e6191b10f7b560 100644 --- a/packages/react-native/Libraries/Network/XMLHttpRequest.js +++ b/packages/react-native/Libraries/Network/XMLHttpRequest.js @@ -13,12 +13,12 @@ import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger'; import {type EventSubscription} from '../vendor/emitter/EventEmitter'; +import EventTarget from 'event-target-shim'; const BlobManager = require('../Blob/BlobManager'); const GlobalPerformanceLogger = require('../Utilities/GlobalPerformanceLogger'); const RCTNetworking = require('./RCTNetworking').default; const base64 = require('base64-js'); -const EventTarget = require('event-target-shim'); const invariant = require('invariant'); const DEBUG_NETWORK_SEND_DELAY: false = false; // Set to a number of milliseconds when debugging