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

Commit b133597

Browse files
committed
bump to 0.10.0-beta.8
1 parent e086e9a commit b133597

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ Optionally, use the following command to add Android permissions to `AndroidMani
7979
RNFB_ANDROID_PERMISSIONS=true react-native link
8080
```
8181

82-
pre 0.29 projects
82+
pre 0.29 projects
8383

8484
```sh
8585
RNFB_ANDROID_PERMISSIONS=true rnpm link
8686
```
8787

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.
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) to manually link the pacakge.
8989

9090
**Grant Permission to External storage for Android 5.0 or lower**
9191

@@ -154,10 +154,10 @@ To sum up :
154154
- 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.
155155
- To send binary data, you have two choices, use BASE64 encoded string or path points to a file contains the body.
156156
- 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.
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.
158158
- To send the body as-is, simply use a `Content-Type` header not containing `;BASE64` or `application/octet`.
159159

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'`
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'`
161161
162162
> 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`.
163163
@@ -380,7 +380,7 @@ What if you want to append a file to form data ? Just like [upload a file from s
380380

381381
### Upload/Download progress
382382

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.
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.
384384

385385
```js
386386
RNFetchBlob.fetch('POST', 'http://www.example.com/upload', {
@@ -737,7 +737,7 @@ Here's a [sample app](https://github.com/wkh237/rn-firebase-storage-upload-sampl
737737

738738
**Read Stream Event Overhead**
739739

740-
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.
740+
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.
741741

742742
**Reduce RCT Bridge and BASE64 Overhead**
743743

src/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pre 0.29 projects
8282
RNFB_ANDROID_PERMISSIONS=true rnpm link
8383
```
8484

85-
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.
85+
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) to manually link the pacakge.
8686

8787
**Grant Permission to External storage for Android 5.0 or lower**
8888

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fetch-blob",
3-
"version": "0.10.0-beta.7",
3+
"version": "0.10.0-beta.8",
44
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
55
"main": "index.js",
66
"scripts": {

src/react-native-fetch-blob.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "react-native-fetch-blob"
3-
s.version = "0.10.0-beta.7"
3+
s.version = "0.10.0-beta.8"
44
s.summary = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
55
s.requires_arc = true
66
s.license = 'MIT'
77
s.homepage = 'n/a'
88
s.authors = { "wkh237" => "[email protected]" }
9-
s.source = { :git => "https://github.com/wkh237/react-native-fetch-blob", :tag => 'v0.10.0-beta.7'}
9+
s.source = { :git => "https://github.com/wkh237/react-native-fetch-blob", :tag => 'v0.10.0-beta.8'}
1010
s.source_files = 'ios/**/*.{h,m}'
1111
s.platform = :ios, "7.0"
1212
s.dependency 'React/Core'

0 commit comments

Comments
 (0)