|
@@ -1,8 +1,10 @@
|
1
|
|
-# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/releases) [![npm](https://img.shields.io/npm/v/react-native-fetch-blob.svg?style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) ![](https://img.shields.io/badge/PR-Welcome-brightgreen.svg?style=flat-square) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
|
|
1
|
+# react-native-fetch-blob
|
|
2
|
+[![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/releases) [![npm](https://img.shields.io/npm/v/react-native-fetch-blob.svg?style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) ![](https://img.shields.io/badge/PR-Welcome-brightgreen.svg?style=flat-square) [![](https://img.shields.io/badge/Wiki-Public-brightgreen.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/wiki) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
|
2
|
3
|
|
3
|
|
-# [Visit our Github for latest document](https://github.com/wkh237/react-native-fetch-blob)
|
4
|
4
|
|
5
|
|
-A project committed to make file acess and data transfer easier, effiecient for React Native developers.
|
|
5
|
+A project committed to make file acess and data transfer easier, efficient for React Native developers.
|
|
6
|
+
|
|
7
|
+# [Please visit our Github Page for latest document](https://github.com/wkh237/react-native-fetch-blob)
|
6
|
8
|
|
7
|
9
|
## Features
|
8
|
10
|
- Transfer data directly from/to storage without BASE64 bridging
|
|
@@ -11,7 +13,6 @@ A project committed to make file acess and data transfer easier, effiecient for
|
11
|
13
|
- File stream support for dealing with large file
|
12
|
14
|
- Blob, File, XMLHttpRequest polyfills that make browser-based library available in RN (experimental)
|
13
|
15
|
|
14
|
|
-
|
15
|
16
|
## TOC
|
16
|
17
|
* [About](#user-content-about)
|
17
|
18
|
* [Installation](#user-content-installation)
|
|
@@ -24,6 +25,7 @@ A project committed to make file acess and data transfer easier, effiecient for
|
24
|
25
|
* [Cancel HTTP request](#user-content-cancel-request)
|
25
|
26
|
* [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
|
26
|
27
|
* [Self-Signed SSL Server](#user-content-self-signed-ssl-server)
|
|
28
|
+ * [Transfer Encoding](#user-content-transfer-encoding)
|
27
|
29
|
* [RNFetchBlob as Fetch](#user-content-rnfetchblob-as-fetch)
|
28
|
30
|
* [File System](#user-content-file-system)
|
29
|
31
|
* [File access](#user-content-file-access)
|
|
@@ -37,9 +39,9 @@ A project committed to make file acess and data transfer easier, effiecient for
|
37
|
39
|
|
38
|
40
|
## About
|
39
|
41
|
|
40
|
|
-This project was initially for solving the issue [facebook/react-native#854](https://github.com/facebook/react-native/issues/854), because React Native lack of `Blob` implementation and it will cause some problem when transfering binary data. Now, this project is committed to make file access and transfer more easier, effiecient for React Native developers. We've implemented highly customizable filesystem and network module which plays well together. For example, upload and download data directly from/to storage which is much more efficient in some cases(especially for large ones). The file system supports file stream, so you don't have to worry about OOM problem when accessing large files.
|
|
42
|
+This project was initially for solving the issue [facebook/react-native#854](https://github.com/facebook/react-native/issues/854), because React Native lack of `Blob` implementation and it will cause some problem when transferring binary data. Now, this project is committed to make file access and transfer more easier, efficient for React Native developers. We've implemented highly customizable filesystem and network module which plays well together. For example, upload and download data directly from/to storage which is much more efficient in some cases(especially for large ones). The file system supports file stream, so you don't have to worry about OOM problem when accessing large files.
|
41
|
43
|
|
42
|
|
-In `0.8.0` we introduced experimential Web API polyfills that make it possible to use browser-based libraries in React Native, for example, [FireBase JS SDK](https://github.com/wkh237/rn-firebase-storage-upload-sample)
|
|
44
|
+In `0.8.0` we introduced experimental Web API polyfills that make it possible to use browser-based libraries in React Native, such as, [FireBase JS SDK](https://github.com/wkh237/rn-firebase-storage-upload-sample)
|
43
|
45
|
|
44
|
46
|
|
45
|
47
|
## Installation
|
|
@@ -50,40 +52,40 @@ Install package from npm
|
50
|
52
|
npm install --save react-native-fetch-blob
|
51
|
53
|
```
|
52
|
54
|
|
53
|
|
-Link package using [rnpm](https://github.com/rnpm/rnpm)
|
|
55
|
+Or if using CocoaPods, add the pod to your `Podfile`, for example:
|
54
|
56
|
|
55
|
|
-```sh
|
56
|
|
-rnpm link
|
57
|
57
|
```
|
|
58
|
+pod 'react-native-fetch-blob,
|
|
59
|
+ :path => '../node_modules/react-native-fetch-blob
|
|
60
|
+```
|
|
61
|
+
|
|
62
|
+**Automatically Link Native Modules**
|
58
|
63
|
|
59
|
|
-### Manually link the package (Android)
|
|
64
|
+For 0.29.2+ projects, simply link native packages via following command because rnpm has been merged into react-native, you no longer need it.
|
60
|
65
|
|
61
|
|
-If rnpm link command failed to link the package automatically, you might try manually link the package.
|
|
66
|
+```
|
|
67
|
+react-native link
|
|
68
|
+```
|
62
|
69
|
|
63
|
|
-Open `android/settings.gradle`, and add these lines which will app RNFetchBlob Android project dependency to your app.
|
|
70
|
+As for projects < 0.29 you need `rnpm` to link native packages
|
64
|
71
|
|
65
|
|
-```diff
|
66
|
|
-include ':app'
|
67
|
|
-+ include ':react-native-fetch-blob'
|
68
|
|
-+ project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android')
|
|
72
|
+```sh
|
|
73
|
+rnpm link
|
69
|
74
|
```
|
70
|
75
|
|
71
|
|
-Add this line to `MainApplication.java`, so that RNFetchBlob package becomes part of react native package.
|
|
76
|
+Optionally, use the following command to add Android permissions to `AndroidManifest.xml` automatically
|
72
|
77
|
|
73
|
|
-```diff
|
74
|
|
-...
|
75
|
|
-+ import com.RNFetchBlob.RNFetchBlobPackage;
|
76
|
|
-...
|
77
|
|
-protected List<ReactPackage> getPackages() {
|
78
|
|
- return Arrays.<ReactPackage>asList(
|
79
|
|
- new MainReactPackage(),
|
80
|
|
-+ new RNFetchBlobPackage()
|
81
|
|
- );
|
82
|
|
- }
|
83
|
|
- };
|
84
|
|
-...
|
|
78
|
+```sh
|
|
79
|
+RNFB_ANDROID_PERMISSIONS=true react-native link
|
85
|
80
|
```
|
86
|
|
-> If you still having problem on installing this package, please check the [trouble shooting page](https://github.com/wkh237/react-native-fetch-blob/wiki/Trouble-Shooting) or [file an issue](https://github.com/wkh237/react-native-fetch-blob/issues/new)
|
|
81
|
+
|
|
82
|
+pre 0.29 projects
|
|
83
|
+
|
|
84
|
+```sh
|
|
85
|
+RNFB_ANDROID_PERMISSIONS=true rnpm link
|
|
86
|
+```
|
|
87
|
+
|
|
88
|
+The link script might not take effect if you have non-default project structure, please visit [the wiki](https://github.com/wkh237/react-native-fetch-blob/wiki/Manually-Link-Package/_edit) to manually link the pacakge.
|
87
|
89
|
|
88
|
90
|
**Grant Permission to External storage for Android 5.0 or lower**
|
89
|
91
|
|
|
@@ -138,11 +140,10 @@ If you're using ES5 require statement to load the module, please add `default`.
|
138
|
140
|
var RNFetchBlob = require('react-native-fetch-blob').default
|
139
|
141
|
```
|
140
|
142
|
|
141
|
|
-### HTTP Data Transfer
|
|
143
|
+## HTTP Data Transfer
|
142
|
144
|
|
143
|
|
----
|
144
|
145
|
|
145
|
|
-#### Regular Request
|
|
146
|
+### Regular Request
|
146
|
147
|
|
147
|
148
|
After `0.8.0` react-native-fetch-blob automatically decide how to send the body by checking its type and `Content-Type` in header. The rule is described in the following diagram
|
148
|
149
|
|
|
@@ -150,13 +151,17 @@ After `0.8.0` react-native-fetch-blob automatically decide how to send the body
|
150
|
151
|
|
151
|
152
|
To sum up :
|
152
|
153
|
|
153
|
|
-- To send a form data, the `Content-Type` header won't take effect if the body is an `Array` because we will set proper content type for you.
|
154
|
|
-- To send binary data, you have two choices, use BASE64 encoded string or a file path which points to a file contains the body. The `Content-Type` header does not matters.
|
155
|
|
- - The body is a BASE64 encoded string, the `Content-Type` header filed must containing substring`;BASE64` or `application/octet`
|
156
|
|
- - The body is a path point to a file, it must be a string starts with `RNFetchBlob-file://`, which can simply done by `RNFetchBlob.wrap(PATH_TO_THE_FILE)`
|
157
|
|
-- To send the body as-is, set a `Content-Type` header not containing `;BASE64` or `application/octet`.
|
|
154
|
+- To send a form data, the `Content-Type` header does not matters. When the body is an `Array` we will set proper content type for you.
|
|
155
|
+- To send binary data, you have two choices, use BASE64 encoded string or path points to a file contains the body.
|
|
156
|
+ - If the `Content-Type` containing substring`;BASE64` or `application/octet` the given body will be considered as a BASE64 encoded data which will be decoded to binary data as the request body.
|
|
157
|
+ - Otherwise, if a string starts with `RNFetchBlob-file://` (which can simply done by `RNFetchBlob.wrap(PATH_TO_THE_FILE)`), it will try to find the data from the URI string after `RNFetchBlob-file://` and use it as request body.
|
|
158
|
+- To send the body as-is, simply use a `Content-Type` header not containing `;BASE64` or `application/octet`.
|
|
159
|
+
|
|
160
|
+> It is Worth to mentioning that the HTTP request uses cache by default, if you're going to disable it simply add a Cache Control header `'Cache-Control' : 'no-store'`
|
|
161
|
+
|
|
162
|
+> After 0.9.4, we disabled `Chunked` transfer encoding by default, if you're going to use it, you should explicitly set header `Transfer-Encoding` to `Chunked`.
|
158
|
163
|
|
159
|
|
-#### Download example : Fetch files that needs authorization token
|
|
164
|
+### Download example : Fetch files that needs authorization token
|
160
|
165
|
|
161
|
166
|
Most simple way is download to memory and stored as BASE64 encoded string, this is handy when the response data is small.
|
162
|
167
|
|
|
@@ -182,9 +187,9 @@ RNFetchBlob.fetch('GET', 'http://www.example.com/images/img1.png', {
|
182
|
187
|
})
|
183
|
188
|
```
|
184
|
189
|
|
185
|
|
-#### Download to storage directly
|
|
190
|
+### Download to storage directly
|
186
|
191
|
|
187
|
|
-If the response data is large, that would be a bad idea to convert it into BASE64 string. The better solution is store the response data directly into file system. The simplest way is give a `fileCache` option to config, and set it to `true`. This will make incoming response data stored in a temporary path **without** any file extension.
|
|
192
|
+If the response data is large, that would be a bad idea to convert it into BASE64 string. A better solution is streaming the response directly into a file, simply add a `fileCache` option to config, and set it to `true`. This will make incoming response data stored in a temporary path **without** any file extension.
|
188
|
193
|
|
189
|
194
|
**These files won't be removed automatically, please refer to [Cache File Management](#user-content-cache-file-management)**
|
190
|
195
|
|
|
@@ -206,7 +211,7 @@ RNFetchBlob
|
206
|
211
|
|
207
|
212
|
**Set Temp File Extension**
|
208
|
213
|
|
209
|
|
-Sometimes you might need a file extension for some reason. For instance, when using file path as source of `Image` component, the path should end with something like .png or .jpg, you can do this by add `appendExt` option to `config`.
|
|
214
|
+Sometimes you might need a file extension for some reason. For example, when using file path as source of `Image` component, the path should end with something like .png or .jpg, you can do this by add `appendExt` option to `config`.
|
210
|
215
|
|
211
|
216
|
```js
|
212
|
217
|
RNFetchBlob
|
|
@@ -229,7 +234,7 @@ RNFetchBlob
|
229
|
234
|
|
230
|
235
|
**Use Specific File Path**
|
231
|
236
|
|
232
|
|
-If you prefer a specific path rather than randomly generated one, you can use `path` option. We've added a constant [dirs](#user-content-dirs) in v0.5.0 that contains several common used directories.
|
|
237
|
+If you prefer a specific path rather than randomly generated one, you can use `path` option. We've added [several constants](#user-content-dirs) in v0.5.0 which represents commonly used directories.
|
233
|
238
|
|
234
|
239
|
```js
|
235
|
240
|
let dirs = RNFetchBlob.fs.dirs
|
|
@@ -251,7 +256,7 @@ RNFetchBlob
|
251
|
256
|
|
252
|
257
|
#### Upload example : Dropbox [files-upload](https://www.dropbox.com/developers/documentation/http/documentation#files-upload) API
|
253
|
258
|
|
254
|
|
-`react-native-fetch-blob` will convert the base64 string in `body` to binary format using native API, this process will be done in a new thread, so it's async.
|
|
259
|
+`react-native-fetch-blob` will convert the base64 string in `body` to binary format using native API, this process will be done in a separated thread, so it won't block your GUI.
|
255
|
260
|
|
256
|
261
|
```js
|
257
|
262
|
|
|
@@ -265,7 +270,7 @@ RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
|
265
|
270
|
}),
|
266
|
271
|
'Content-Type' : 'application/octet-stream',
|
267
|
272
|
// here's the body you're going to send, should be a BASE64 encoded string
|
268
|
|
- // (you can use "base64" APIs to make one).
|
|
273
|
+ // (you can use "base64"(refer to the library 'mathiasbynens/base64') APIs to make one).
|
269
|
274
|
// The data will be converted to "byte array"(say, blob) before request sent.
|
270
|
275
|
}, base64ImageString)
|
271
|
276
|
.then((res) => {
|
|
@@ -276,9 +281,9 @@ RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
|
276
|
281
|
})
|
277
|
282
|
```
|
278
|
283
|
|
279
|
|
-#### Upload a file from storage
|
|
284
|
+### Upload a file from storage
|
280
|
285
|
|
281
|
|
-If you're going to use a `file` request body, just wrap the path with `wrap` API.
|
|
286
|
+If you're going to use a `file` as request body, just wrap the path with `wrap` API.
|
282
|
287
|
|
283
|
288
|
```js
|
284
|
289
|
RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
|
|
@@ -302,7 +307,7 @@ RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
|
302
|
307
|
})
|
303
|
308
|
```
|
304
|
309
|
|
305
|
|
-#### Multipart/form-data example : Post form data with file and data
|
|
310
|
+### Multipart/form-data example : Post form data with file and data
|
306
|
311
|
|
307
|
312
|
In `version >= 0.3.0` you can also post files with form data, just put an array in `body`, with elements have property `name`, `data`, and `filename`(optional).
|
308
|
313
|
|
|
@@ -334,7 +339,7 @@ Elements have property `filename` will be transformed into binary format, otherw
|
334
|
339
|
})
|
335
|
340
|
```
|
336
|
341
|
|
337
|
|
-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.
|
|
342
|
+What if you want to append a file to 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. But keep in mind when the file is large it's likely crash your app. Please consider use other strategy (see [#94](https://github.com/wkh237/react-native-fetch-blob/issues/94)).
|
338
|
343
|
|
339
|
344
|
```js
|
340
|
345
|
|
|
@@ -373,9 +378,9 @@ What if you want to upload a file using form data ? Just like [upload a file fro
|
373
|
378
|
})
|
374
|
379
|
```
|
375
|
380
|
|
376
|
|
-#### Upload/Download progress
|
|
381
|
+### Upload/Download progress
|
377
|
382
|
|
378
|
|
-In `version >= 0.4.2` it is possible to know the upload/download progress. After `0.7.0` IOS and Android upload progress are supported.
|
|
383
|
+In `version >= 0.4.2` it is possible to know the upload/download progress. After `0.7.0` IOS and Android upload progress are also supported.
|
379
|
384
|
|
380
|
385
|
```js
|
381
|
386
|
RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
|
|
@@ -398,7 +403,7 @@ In `version >= 0.4.2` it is possible to know the upload/download progress. After
|
398
|
403
|
})
|
399
|
404
|
```
|
400
|
405
|
|
401
|
|
-#### Cancel Request
|
|
406
|
+### Cancel Request
|
402
|
407
|
|
403
|
408
|
After `0.7.0` it is possible to cancel a HTTP request. When the request cancel, it will definately throws an promise rejection, be sure to catch it.
|
404
|
409
|
|
|
@@ -537,9 +542,9 @@ Or show an image in image viewer
|
537
|
542
|
android.actionViewIntent(PATH_OF_IMG, 'image/png')
|
538
|
543
|
```
|
539
|
544
|
|
540
|
|
-### File System
|
|
545
|
+## File System
|
541
|
546
|
|
542
|
|
-#### File Access
|
|
547
|
+### File Access
|
543
|
548
|
|
544
|
549
|
File access APIs were made when developing `v0.5.0`, which helping us write tests, and was not planned to be a part of this module. However we realized that, it's hard to find a great solution to manage cached files, every one who use this moudle may need these APIs for there cases.
|
545
|
550
|
|
|
@@ -567,11 +572,11 @@ File Access APIs
|
567
|
572
|
|
568
|
573
|
See [File API](https://github.com/wkh237/react-native-fetch-blob/wiki/File-System-Access-API) for more information
|
569
|
574
|
|
570
|
|
-#### File Stream
|
|
575
|
+### File Stream
|
571
|
576
|
|
572
|
577
|
In `v0.5.0` we've added `writeStream` and `readStream`, which allows your app read/write data from file path. This API creates a file stream, rather than convert whole data into BASE64 encoded string, it's handy when processing **large files**.
|
573
|
578
|
|
574
|
|
-When calling `readStream` method, you have to `open` the stream, and start to read data.
|
|
579
|
+When calling `readStream` method, you have to `open` the stream, and start to read data. When the file is large, consider use an appropriate `bufferSize` and `interval` to reduce the native event dispatching overhead (see [Performance Tips](#user-content-performance-tips))
|
575
|
580
|
|
576
|
581
|
```js
|
577
|
582
|
let data = ''
|
|
@@ -616,7 +621,7 @@ RNFetchBlob.fs.writeStream(
|
616
|
621
|
|
617
|
622
|
```
|
618
|
623
|
|
619
|
|
-#### Cache File Management
|
|
624
|
+### Cache File Management
|
620
|
625
|
|
621
|
626
|
When using `fileCache` or `path` options along with `fetch` API, response data will automatically stored into file system. The files will **NOT** removed unless you `unlink` it. There're several ways to remove the files
|
622
|
627
|
|
|
@@ -673,7 +678,15 @@ You can also grouping requests by using `session` API, and use `dispose` to remo
|
673
|
678
|
|
674
|
679
|
```
|
675
|
680
|
|
676
|
|
-#### Self-Signed SSL Server
|
|
681
|
+### Transfer Encoding
|
|
682
|
+
|
|
683
|
+After `0.9.4`, the `Chunked` transfer encoding is disabled by default due to some service provoder may not support chunked transfer. To enable it, set `Transfer-Encoding` header to `Chunked`.
|
|
684
|
+
|
|
685
|
+```js
|
|
686
|
+RNFetchBlob.fetch('POST', 'http://example.com/upload', { 'Transfer-Encoding' : 'Chunked' }, bodyData)
|
|
687
|
+```
|
|
688
|
+
|
|
689
|
+### Self-Signed SSL Server
|
677
|
690
|
|
678
|
691
|
By default, react-native-fetch-blob does NOT allow connection to unknown certification provider since it's dangerous. If you're going to connect a server with self-signed certification, add `trusty` to `config`. This function is available for version >= `0.5.3`
|
679
|
692
|
|
|
@@ -687,7 +700,7 @@ RNFetchBlob.config({
|
687
|
700
|
})
|
688
|
701
|
```
|
689
|
702
|
|
690
|
|
-### Web API Polyfills
|
|
703
|
+## Web API Polyfills
|
691
|
704
|
|
692
|
705
|
After `0.8.0` we've made some [Web API polyfills](https://github.com/wkh237/react-native-fetch-blob/wiki/Web-API-Polyfills-(experimental)) that makes some browser-based library available in RN.
|
693
|
706
|
|
|
@@ -696,13 +709,15 @@ After `0.8.0` we've made some [Web API polyfills](https://github.com/wkh237/reac
|
696
|
709
|
|
697
|
710
|
Here's a [sample app](https://github.com/wkh237/rn-firebase-storage-upload-sample) that uses polyfills to upload files to FireBase.
|
698
|
711
|
|
699
|
|
-### Performance Tips
|
|
712
|
+## Performance Tips
|
|
713
|
+
|
|
714
|
+**Read Stream Event Overhead**
|
700
|
715
|
|
701
|
|
----
|
|
716
|
+When reading data via `fs.readStream` the process seems blocking JS thread when file is large, it's because the default buffer size is quite small (4kb) which result in large amount of events triggered in JS thread, try to increase the buffer size (for example 100kb = 102400) and set a larger interval (which is introduced in 0.9.4 default value is 10ms) to limit the frequency.
|
702
|
717
|
|
703
|
|
-**Reduce RCT Bridge and BASE64 Overheard**
|
|
718
|
+**Reduce RCT Bridge and BASE64 Overhead**
|
704
|
719
|
|
705
|
|
-React Native connects JS and Native context by passing JSON through React bridge, therefore there will be an overhead to convert data before they sent. When data is large, this will be quite a performance impact to your app, it's recommended to use file storage instead of BASE64 if possible. The following chart shows how much faster when loading data from storage than BASE64 encoded string on iphone 6.
|
|
720
|
+React Native connects JS and Native context by passing JSON around React Native bridge, and there will be an overhead to convert data before they sent to each side. When data is large, this will be quite a performance impact to your app, it's recommended to use file storage instead of BASE64 if possible.The following chart shows how much faster when loading data from storage than BASE64 encoded string on iphone 6.
|
706
|
721
|
|
707
|
722
|
<img src="img/performance_1.png" style="width : 100%"/>
|
708
|
723
|
|
|
@@ -720,35 +735,7 @@ If you're going to concatenate files, you don't have to read the data to JS cont
|
720
|
735
|
|
721
|
736
|
## Changes
|
722
|
737
|
|
723
|
|
-| Version | |
|
724
|
|
-|---|---|
|
725
|
|
-| 0.9.1 | Fix Android Blob constructor asynchronous issue caused by 0.9.0 fs change |
|
726
|
|
-| 0.9.0 | Fix unicode response data format issue #73. Improve Android performance by using thread pool instead of async task. Add Fetch replacement #70. Add Android only API `actionViewIntent` to open file or install APK in app |
|
727
|
|
-| 0.8.1 | Remove Web API log and fix ios progress report function. |
|
728
|
|
-| 0.8.0 | Added Web API polyfills, support regular request, added timeout option. |
|
729
|
|
-| 0.7.5 | Fix installation script that make it compatible to react-native < 0.28 |
|
730
|
|
-| 0.7.4 | Fix app crash problem in version > 0.27 |
|
731
|
|
-| 0.7.3 | Fix OkHttp dependency issue in version < 0.29 |
|
732
|
|
-| 0.7.2 | Fix cancel request bug |
|
733
|
|
-| 0.7.1 | Fix #57 ios module could not compile on ios version <= 9.3 |
|
734
|
|
-| 0.7.0 | Add support of Android upload progress, and remove AsyncHttpClient dependency from Android native implementation. |
|
735
|
|
-| 0.6.4 | Fix rnpm link script. |
|
736
|
|
-| 0.6.3 | Fix performance issue on IOS, increase max concurrent request limitation from 1. |
|
737
|
|
-| 0.6.2 | Add support of asset file and camera roll files, Support custom MIME type when sending multipart request, thanks @smartt |
|
738
|
|
-| 0.6.1 | Fix #37 progress report API issue on IOS |
|
739
|
|
-| 0.6.0 | Add readFile and writeFile API for easier file access, also added Android download manager support. |
|
740
|
|
-| 0.5.8 | Fix #33 PUT request will always be sent as POST on Android |
|
741
|
|
-| 0.5.7 | Fix #31 #30 Xcode pre 7.3 build error |
|
742
|
|
-| 0.5.6 | Add support for IOS network status indicator. Fix file stream ASCII reader bug. |
|
743
|
|
-| 0.5.5 | Remove work in progress code added in 0.5.2 which may cause memory leaks. |
|
744
|
|
-| 0.5.4 | Fix #30 #31 build build error, and improve memory efficiency. |
|
745
|
|
-| 0.5.3 | Add API for access untrusted SSL server |
|
746
|
|
-| 0.5.2 | Fix improper url params bug [#26](https://github.com/wkh237/react-native-fetch-blob/issues/26) and change IOS HTTP implementation from NSURLConnection to NSURLSession |
|
747
|
|
-| 0.5.0 | Upload/download with direct access to file storage, and also added file access APIs |
|
748
|
|
-| 0.4.2 | Supports upload/download progress |
|
749
|
|
-| 0.4.1 | Fix upload form-data missing file extension problem on Android |
|
750
|
|
-| 0.4.0 | Add base-64 encode/decode library and API |
|
751
|
|
-| ~0.3.0 | Upload/Download octet-stream and form-data |
|
|
738
|
+See [release notes](https://github.com/wkh237/react-native-fetch-blob/releases)
|
752
|
739
|
|
753
|
740
|
### Development
|
754
|
741
|
|