Skip to content

Commit cc54ea9

Browse files
authored
Merge pull request #688 from alexnaiman/fix_183_requiring_cycles
Fix for #183
2 parents 864d975 + ae41bff commit cc54ea9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

polyfill/Blob.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
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 {NativeModules} from 'react-native';
66
import fs from '../fs.js'
77
import getUUID from '../utils/uuid'
88
import Log from '../utils/log.js'
99
import EventTarget from './EventTarget'
1010

11+
const RNFetchBlob = NativeModules.RNFetchBlob
1112
const log = new Log('Blob')
1213
const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
1314

polyfill/Fetch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import RNFetchBlob from '../index.js'
1+
import {NativeModules} from 'react-native';
22
import Log from '../utils/log.js'
33
import fs from '../fs'
44
import unicode from '../utils/unicode'
55
import Blob from './Blob'
66

7+
const RNFetchBlob = NativeModules.RNFetchBlob
78
const log = new Log('FetchPolyfill')
89

910
log.disable()

polyfill/XMLHttpRequest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
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 {NativeModules} from 'react-native';
66
import XMLHttpRequestEventTarget from './XMLHttpRequestEventTarget.js'
77
import Log from '../utils/log.js'
88
import Blob from './Blob.js'
99
import ProgressEvent from './ProgressEvent.js'
1010
import URIUtil from '../utils/uri'
1111

12+
const RNFetchBlob = NativeModules.RNFetchBlob
1213
const log = new Log('XMLHttpRequest')
1314

1415
log.disable()

0 commit comments

Comments
 (0)