Browse Source

Add readme image

Ben Hsieh 8 years ago
parent
commit
190c4c8160
3 changed files with 7 additions and 3 deletions
  1. 7
    3
      README.md
  2. BIN
      img/android-notification1.png
  3. BIN
      img/android-notification2.png

+ 7
- 3
README.md View File

4
 
4
 
5
 **Why do we need this**
5
 **Why do we need this**
6
 
6
 
7
-At this moment, React Native does not support `Blob` object yet, so if you're going to send/receive binary data via `fetch` API, that might not work as you expect. See [[fetch] Does fetch with blob() marshal data across the bridge?](https://github.com/facebook/react-native/issues/854). 
7
+At this moment, React Native does not support `Blob` object yet, so if you're going to send/receive binary data via `fetch` API, that might not work as you expect. See [[fetch] Does fetch with blob() marshal data across the bridge?](https://github.com/facebook/react-native/issues/854).
8
 
8
 
9
-Hence you may getting into trouble in some use cases. For example, displaying an image on image server but the server requires a specific field(such as "Authorization") in headers or body, so you can't just pass the image uri to `Image` component because that will probably returns a 401 response. With help of this module, you can send a HTTP request with any headers, and decide how to handle the response/reqeust data. It can be just simply converted into BASE64 string, or store to a file directly so that you can read it by file stream or use it's path. 
9
+Hence you may getting into trouble in some use cases. For example, displaying an image on image server but the server requires a specific field(such as "Authorization") in headers or body, so you can't just pass the image uri to `Image` component because that will probably returns a 401 response. With help of this module, you can send a HTTP request with any headers, and decide how to handle the response/reqeust data. It can be just simply converted into BASE64 string, or store to a file directly so that you can read it by file stream or use it's path.
10
 
10
 
11
 This module is designed to be a substitution of `blob`, there's a set of file access API including basic CRUD method, and file stream reader/writer. Also it has a special `fetch` implementation that supports binary request/response body.
11
 This module is designed to be a substitution of `blob`, there's a set of file access API including basic CRUD method, and file stream reader/writer. Also it has a special `fetch` implementation that supports binary request/response body.
12
 
12
 
319
 
319
 
320
 **Download Notification and Visibiliy in Download App (Android Only)**
320
 **Download Notification and Visibiliy in Download App (Android Only)**
321
 
321
 
322
-If you want to download notification or make the stored file visible like the above. You have to add some options to `config`. 
322
+<img src="img/android-notification1.png" width="256">
323
+<img src="img/android-notification2.png" width="256">
324
+
325
+
326
+If you want to download notification or make the stored file visible like the above. You have to add some options to `config`.
323
 
327
 
324
 ```js
328
 ```js
325
 RNFetchBlob.config({
329
 RNFetchBlob.config({

BIN
img/android-notification1.png View File


BIN
img/android-notification2.png View File