Bladeren bron

Merge branch 'master' into 0.5.0

Ben Hsieh 9 jaren geleden
bovenliggende
commit
81637de10d
1 gewijzigde bestanden met toevoegingen van 17 en 11 verwijderingen
  1. 17
    11
      README.md

+ 17
- 11
README.md Bestand weergeven

1
-# react-native-fetch-blob [![npm version](https://badge.fury.io/js/react-native-fetch-blob.svg)](https://badge.fury.io/js/react-native-fetch-blob)
1
+# react-native-fetch-blob [![npm version](https://badge.fury.io/js/react-native-fetch-blob.svg)](https://badge.fury.io/js/react-native-fetch-blob) ![](https://img.shields.io/badge/PR-Welcome-brightgreen.svg)
2
 
2
 
3
 A react-native module for fetch file/image with custom headers, supports blob response data, and upload/download progress.
3
 A react-native module for fetch file/image with custom headers, supports blob response data, and upload/download progress.
4
 
4
 
10
 
10
 
11
 The source code is very simple, just an implementation of native HTTP request, supports both Android (uses awesome native library  [AsyncHttpClient](https://github.com/AsyncHttpClient/async-http-client])) and IOS.
11
 The source code is very simple, just an implementation of native HTTP request, supports both Android (uses awesome native library  [AsyncHttpClient](https://github.com/AsyncHttpClient/async-http-client])) and IOS.
12
 
12
 
13
-## Major Changes
14
-
15
-| Version | |
16
-|---|---|
17
-| 0.3 | Upload/Download octet-stream and form-data |
18
-| 0.4 | Add base-64 encode/decode library and API |
19
-| 0.4.1 | Fixe upload form-data missing file extension problem on Android |
20
-| 0.4.2 | Supports upload/download progress |
21
-
22
 ## Usage
13
 ## Usage
23
 
14
 
24
 * [Installation](#user-content-installation)
15
 * [Installation](#user-content-installation)
161
 Body of the HTTP request, body can either be a BASE64 string, or an array contains object elements, each element have 2  required property `name`, and `data`, and 1 optional property `filename`, once `filename` is set, content in `data` property will be consider as BASE64 string that will be converted into byte array later.
152
 Body of the HTTP request, body can either be a BASE64 string, or an array contains object elements, each element have 2  required property `name`, and `data`, and 1 optional property `filename`, once `filename` is set, content in `data` property will be consider as BASE64 string that will be converted into byte array later.
162
 When body is a base64 string , this string will be converted into byte array in native code, and the request body will be sent as `application/octet-stream`.
153
 When body is a base64 string , this string will be converted into byte array in native code, and the request body will be sent as `application/octet-stream`.
163
 
154
 
164
-### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>` added in `0.4.2`
155
+#### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>` added in `0.4.2`
165
 
156
 
166
 Register on progress event handler for a fetch request.
157
 Register on progress event handler for a fetch request.
167
 
158
 
189
 #### text():string
180
 #### text():string
190
   returns decoded base64 string (done in js context)
181
   returns decoded base64 string (done in js context)
191
 
182
 
183
+## Major Changes
184
+
185
+| Version | |
186
+|---|---|
187
+| 0.3 | Upload/Download octet-stream and form-data |
188
+| 0.4 | Add base-64 encode/decode library and API |
189
+| 0.4.1 | Fixe upload form-data missing file extension problem on Android |
190
+| 0.4.2 | Supports upload/download progress |
192
 
191
 
193
 ### Upcoming Features
192
 ### Upcoming Features
194
 
193
 
194
+We are now working on v0.5.0, there will be some new features.
195
+
195
 * Save file to storage directly
196
 * Save file to storage directly
196
 * Upload file from storage directly
197
 * Upload file from storage directly
197
 * Custom MIME type in form data
198
 * Custom MIME type in form data
199
+
200
+### Development
201
+
202
+If you're insterested in hacking this module, check our [development guide](https://github.com/wkh237/react-native-fetch-blob/wiki/Development-Guide), there might be something helpful. 
203
+Please feel free to make a PR or file an issue.