瀏覽代碼

Add readme image

Ben Hsieh 8 年之前
父節點
當前提交
190c4c8160
共有 3 個檔案被更改,包括 7 行新增3 行删除
  1. 7
    3
      README.md
  2. 二進制
      img/android-notification1.png
  3. 二進制
      img/android-notification2.png

+ 7
- 3
README.md 查看文件

@@ -4,9 +4,9 @@ A module provides upload, download, and files access API. Supports file stream r
4 4
 
5 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 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,7 +319,11 @@ If mime is null or undefined, then the mime type will be inferred from the file
319 319
 
320 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 328
 ```js
325 329
 RNFetchBlob.config({

二進制
img/android-notification1.png 查看文件


二進制
img/android-notification2.png 查看文件