Skip to content

Commit 81fa4b7

Browse files
authored
Update XMLHttpRequest.js
Fix require cycle
1 parent ac908ca commit 81fa4b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

polyfill/XMLHttpRequest.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
// Use of this source code is governed by a MIT-style license that can be
33
// found in the LICENSE file.
44

5-
import RNFetchBlob from '../index.js'
5+
//import RNFetchBlob from '../index.js'
6+
import {NativeModules} from 'react-native';
7+
68
import XMLHttpRequestEventTarget from './XMLHttpRequestEventTarget.js'
79
import Log from '../utils/log.js'
810
import Blob from './Blob.js'
911
import ProgressEvent from './ProgressEvent.js'
1012
import URIUtil from '../utils/uri'
1113

14+
const RNFetchBlob = NativeModules.RNFetchBlob
1215
const log = new Log('XMLHttpRequest')
1316

1417
log.disable()

0 commit comments

Comments
 (0)