Skip to content

Commit d0128f5

Browse files
committed
1 parent 2c8e818 commit d0128f5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

polyfill/Blob.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
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+
const RNFetchBlob = NativeModules.RNFetchBlob
68
import fs from '../fs.js'
79
import getUUID from '../utils/uuid'
810
import Log from '../utils/log.js'

polyfill/Fetch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import RNFetchBlob from '../index.js'
1+
// import RNFetchBlob from '../index.js'
2+
import {NativeModules} from 'react-native';
3+
const RNFetchBlob = NativeModules.RNFetchBlob
24
import Log from '../utils/log.js'
35
import fs from '../fs'
46
import unicode from '../utils/unicode'

polyfill/XMLHttpRequest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
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+
const RNFetchBlob = NativeModules.RNFetchBlob
68
import XMLHttpRequestEventTarget from './XMLHttpRequestEventTarget.js'
79
import Log from '../utils/log.js'
810
import Blob from './Blob.js'

0 commit comments

Comments
 (0)