Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit a01301d

Browse files
committed
Added path wrapper API
1 parent 0b823ff commit a01301d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ if(!RNFetchBlob || !RNFetchBlob.fetchBlobForm || !RNFetchBlob.fetchBlob) {
6060
)
6161
}
6262

63+
function wrap(path:string):string {
64+
return 'RNFetchBlob-file://' + path
65+
}
66+
6367
/**
6468
* Calling this method will inject configurations into followed `fetch` method.
6569
* @param {RNFetchBlobConfig} options
@@ -253,4 +257,5 @@ export default {
253257
config,
254258
session,
255259
fs,
260+
wrap,
256261
}

0 commit comments

Comments
 (0)