Browse Source

Update README.md

wkh237 8 years ago
parent
commit
11fe4fb24e
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      README.md

+ 8
- 7
README.md View File

@@ -2,11 +2,8 @@
2 2
 
3 3
 A project committed to make file acess and transfer easier and effiecient for React Native developers.
4 4
 
5
-**You will need react-native 0.27+ to use 0.7.0+ version**
6
-
7 5
 ## TOC
8 6
 * [About](#user-content-about)
9
-* [Backward Compatible](#user-content-backward-compatible)
10 7
 * [Installation](#user-content-installation)
11 8
 * [Recipes](#user-content-recipes)
12 9
  * [Download file](#user-content-download-example--fetch-files-that-needs-authorization-token)
@@ -29,10 +26,6 @@ This project was initially for solving the issue [facebook/react-native#854](htt
29 26
 
30 27
 Now, this project is committed to make file acess and transfer more easier and more effiecient for React Native developers. We've implemented lot of file access function which plays well with our network module. For example, it can upload and download data directly into/from file system, which is much more performant (especially for large ones) than converting data to BASE64 passing them around through React JS Bridge, also, file stream support so that you can read large file not causing OOM error.
31 28
 
32
-## Backward Compatible
33
-
34
-All updates are `backward-compatible` generally you don't have to change existing code unless you're going to use new APIs. But it's recommended pre `0.5.0` users consider upgrade the package to latest version, since we have introduced new APIs can either `upload` or `download` files simply using a file path. It's much more memory efficent in some use case. We've also introduced `fs` APIs for access files, and `file stream` API that helps you read/write files (especially for **large ones**), see [Examples](#user-content-recipes) bellow. This module implements native methods, supports both Android (uses same native library as offical RN fetch API [OkHttp](https://github.com/square/okhttp)) and IOS.
35
-
36 29
 ## Installation
37 30
 
38 31
 Install package from npm
@@ -47,6 +40,14 @@ Link package using [rnpm](https://github.com/rnpm/rnpm)
47 40
 rnpm link
48 41
 ```
49 42
 
43
+### To Use 0.7.0+ you will need to upgrade your App to 0.29.2+ (Android)
44
+
45
+In `0.7.0` we have removed Android AsyncHttpClient dependency and use OkHttp3+ dependency in react-native, therefore older version project (which uses OkHttp2) will not be compatible. To upgrade your project 
46
+
47
+```
48
+$ react-native upgrade
49
+```
50
+
50 51
 ### Manually link the package (Android)
51 52
 
52 53
 If rnpm link command failed to link the package automatically, you might try manually link the package.