Browse Source

Added path wrapper API

Ben Hsieh 8 years ago
parent
commit
a01301ddef
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/index.js

+ 5
- 0
src/index.js View File

60
   )
60
   )
61
 }
61
 }
62
 
62
 
63
+function wrap(path:string):string {
64
+  return 'RNFetchBlob-file://' + path
65
+}
66
+
63
 /**
67
 /**
64
  * Calling this method will inject configurations into followed `fetch` method.
68
  * Calling this method will inject configurations into followed `fetch` method.
65
  * @param  {RNFetchBlobConfig} options
69
  * @param  {RNFetchBlobConfig} options
253
   config,
257
   config,
254
   session,
258
   session,
255
   fs,
259
   fs,
260
+  wrap,
256
 }
261
 }