Bläddra i källkod

Added path wrapper API

Ben Hsieh 9 år sedan
förälder
incheckning
a01301ddef
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      src/index.js

+ 5
- 0
src/index.js Visa fil

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
 }