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

Commit 5ad3685

Browse files
authored
Update README.md
1 parent 0fcdf3c commit 5ad3685

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ A project committed to make file acess and data transfer easier, effiecient for
2323
* [Cancel HTTP request](#user-content-cancel-request)
2424
* [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
2525
* [Self-Signed SSL Server](#user-content-self-signed-ssl-server)
26+
* [RNFetchBlob as Fetch](#user-content-rnfetchblob-as-fetch)
2627
* [File System](#user-content-file-system)
2728
* [File access](#user-content-file-access)
2829
* [File stream](#user-content-file-stream)
@@ -332,7 +333,7 @@ Elements have property `filename` will be transformed into binary format, otherw
332333
})
333334
```
334335

335-
What if you want to upload a file in some field ? Just like [upload a file from storage](#user-content-upload-a-file-from-storage) example, wrap `data` by `wrap` API (this feature is only available for `version >= v0.5.0`). On version >= `0.6.2`, it is possible to set custom MIME type when appending file to form data.
336+
What if you want to upload a file using form data ? Just like [upload a file from storage](#user-content-upload-a-file-from-storage) example, wrap `data` by `wrap` API (this feature is only available for `version >= v0.5.0`). On version >= `0.6.2`, it is possible to set custom MIME type when appending file to form data.
336337

337338
```js
338339

@@ -413,7 +414,15 @@ task.cancel((err) => { ... })
413414

414415
```
415416

416-
#### Android Media Scanner, and Download Manager Support
417+
### RNFetchBlob as Fetch
418+
419+
0.9.0
420+
421+
If you have existing code that uses `whatwg-fetch`(the official **fetch**), you don't have to change them after 0.9.0, just use fetch replacement. The difference between Official fetch and fetch replacement is, official fetch uses [whatwg-fetch](https://github.com/github/fetch) js library which wraps XMLHttpRequest polyfill under the hood it's a great library for web developers, however that does not play very well with RN. Our implementation is simply a wrapper of RNFetchBlob.fetch and fs APIs, so you can access all the features we provide.
422+
423+
[See document and examples](https://github.com/wkh237/react-native-fetch-blob/wiki/Fetch-API#fetch-replacement)
424+
425+
### Android Media Scanner, and Download Manager Support
417426

418427
If you want to make a file in `External Storage` becomes visible in Picture, Downloads, or other built-in apps, you will have to use `Media Scanner` or `Download Manager`.
419428

0 commit comments

Comments
 (0)