Skip to content

Commit 1b8f4ba

Browse files
committed
bump to 0.7.2
2 parents f4ecc85 + 4cb2871 commit 1b8f4ba

File tree

5 files changed

+44
-8
lines changed

5 files changed

+44
-8
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ Link package using [rnpm](https://github.com/rnpm/rnpm)
4747
rnpm link
4848
```
4949

50-
### Manually link package
50+
### Manually link the package (Android)
5151

5252
If rnpm link command failed to link the package automatically, you might try manually link the package.
5353

54-
Edit add package to`android/settings.gradle`
54+
Open `android/settings.gradle`, and add these lines which will app RNFetchBlob Android project dependency to your app.
5555

5656
```diff
5757
include ':app'
5858
+ include ':react-native-fetch-blob'
5959
+ project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir,' ../node_modules/react-native-fetch-blob/android')
6060
```
6161

62-
Add this code to `MainApplication.java`
62+
Add this line to `MainApplication.java`, so that RNFetchBlob package becomes part of react native package.
6363

6464
```diff
6565
...
@@ -113,9 +113,22 @@ Beginning in Android 6.0 (API level 23), users grant permissions to apps while t
113113

114114
## Recipes
115115

116+
ES6
117+
118+
The module uses ES6 style export statement, simply use `import` to load the module.
119+
116120
```js
117121
import RNFetchBlob from 'react-native-fetch-blob'
118122
```
123+
124+
ES5
125+
126+
If you're using ES5 require statement to load the module, please add `default`. See [here](https://github.com/wkh237/react-native-fetch-blob/wiki/Trouble-Shooting#rnfetchblobfetch-is-not-a-function) for more detail.
127+
128+
```
129+
var RNFetchBlob = require('react-native-fetch-blob').default
130+
```
131+
119132
#### Download example : Fetch files that needs authorization token
120133

121134
```js
@@ -603,6 +616,7 @@ RNFetchBlob.config({
603616

604617
| Version | |
605618
|---|---|
619+
| 0.7.2 | Fix cancel request bug |
606620
| 0.7.1 | Fix #57 ios module could not compile on ios version <= 9.3 |
607621
| 0.7.0 | Add support of Android upload progress, and remove AsyncHttpClient dependency from Android native implementation. |
608622
| 0.6.4 | Fix rnpm link script. |

img/issue_57_1.png

204 KB
Loading

img/issue_57_2.png

207 KB
Loading

img/issue_57_3.png

230 KB
Loading

src/README.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) [![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/express.svg?maxAge=2592000&style=flat-square)]() [![npm](https://img.shields.io/badge/inProgress-0.7.0-yellow.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/milestones)
1+
# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) [![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/express.svg?maxAge=2592000&style=flat-square)]()
22

3-
A module provides upload, download, and files access API. Supports file stream read/write for process large files.
3+
A project committed to make file acess and transfer easier and effiecient for React Native developers.
44

55
## [Please check our github for updated document](https://github.com/wkh237/react-native-fetch-blob)
66

@@ -49,11 +49,19 @@ Link package using [rnpm](https://github.com/rnpm/rnpm)
4949
rnpm link
5050
```
5151

52-
### For React Native >= 0.29.0 (Android)
52+
### Manually link the package (Android)
5353

54-
> If you're using react-native >= `0.29.0`, the package might not be able to link through `rnpm link`, and you might see an error screen similar to [#51](https://github.com/wkh237/react-native-fetch-blob/issues/51), this is because a [a bug in 0.29.0](https://github.com/facebook/react-native/commit/4dabb575b1b311ba541fae7eabbd49f08b5391b3), someone has already fixed it, but the solution does not work on our project, you may have to manually add the package yourself.
54+
If rnpm link command failed to link the package automatically, you might try manually link the package.
5555

56-
Add this code to `MainApplication.java`
56+
Open `android/settings.gradle`, and add these lines which will app RNFetchBlob Android project dependency to your app.
57+
58+
```diff
59+
include ':app'
60+
+ include ':react-native-fetch-blob'
61+
+ project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir,' ../node_modules/react-native-fetch-blob/android')
62+
```
63+
64+
Add this line to `MainApplication.java`, so that RNFetchBlob package becomes part of react native package.
5765

5866
```diff
5967
...
@@ -107,9 +115,22 @@ Beginning in Android 6.0 (API level 23), users grant permissions to apps while t
107115

108116
## Recipes
109117

118+
ES6
119+
120+
The module uses ES6 style export statement, simply use `import` to load the module.
121+
110122
```js
111123
import RNFetchBlob from 'react-native-fetch-blob'
112124
```
125+
126+
ES5
127+
128+
If you're using ES5 require statement to load the module, please add `default`. See [here](https://github.com/wkh237/react-native-fetch-blob/wiki/Trouble-Shooting#rnfetchblobfetch-is-not-a-function) for more detail.
129+
130+
```
131+
var RNFetchBlob = require('react-native-fetch-blob').default
132+
```
133+
113134
#### Download example : Fetch files that needs authorization token
114135

115136
```js
@@ -597,6 +618,7 @@ RNFetchBlob.config({
597618

598619
| Version | |
599620
|---|---|
621+
| 0.7.2 | Fix cancel request bug |
600622
| 0.7.1 | Fix #57 ios module could not compile on ios version <= 9.3 |
601623
| 0.7.0 | Add support of Android upload progress, and remove AsyncHttpClient dependency from Android native implementation. |
602624
| 0.6.4 | Fix rnpm link script. |

0 commit comments

Comments
 (0)