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

Commit

Permalink
bump to 0.10.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 committed Nov 6, 2016
1 parent e086e9a commit b133597
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ Optionally, use the following command to add Android permissions to `AndroidMani
RNFB_ANDROID_PERMISSIONS=true react-native link
```

pre 0.29 projects
pre 0.29 projects

```sh
RNFB_ANDROID_PERMISSIONS=true rnpm link
```

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

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

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

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

### Upload/Download progress

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

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

**Read Stream Event Overhead**

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

**Reduce RCT Bridge and BASE64 Overhead**

Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pre 0.29 projects
RNFB_ANDROID_PERMISSIONS=true rnpm link
```

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-fetch-blob",
"version": "0.10.0-beta.7",
"version": "0.10.0-beta.8",
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/react-native-fetch-blob.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "react-native-fetch-blob"
s.version = "0.10.0-beta.7"
s.version = "0.10.0-beta.8"
s.summary = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
s.requires_arc = true
s.license = 'MIT'
s.homepage = 'n/a'
s.authors = { "wkh237" => "xeiyan@gmail.com" }
s.source = { :git => "https://github.com/wkh237/react-native-fetch-blob", :tag => 'v0.10.0-beta.7'}
s.source = { :git => "https://github.com/wkh237/react-native-fetch-blob", :tag => 'v0.10.0-beta.8'}
s.source_files = 'ios/**/*.{h,m}'
s.platform = :ios, "7.0"
s.dependency 'React/Core'
Expand Down

0 comments on commit b133597

Please sign in to comment.