|
@@ -1,4 +1,4 @@
|
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/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
|
|
1
|
+# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?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/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
|
2
|
2
|
|
3
|
3
|
A project committed to make file acess and data transfer easier, effiecient for React Native developers.
|
4
|
4
|
|
|
@@ -7,7 +7,7 @@ A project committed to make file acess and data transfer easier, effiecient for
|
7
|
7
|
- File API supports normal files, Asset files, and CameraRoll files
|
8
|
8
|
- Native-to-native file manipulation API, reduce JS bridging performance loss
|
9
|
9
|
- File stream support for dealing with large file
|
10
|
|
-- Blob, File, XMLHttpRequest polyfills that make browser-based library available in RN
|
|
10
|
+- Blob, File, XMLHttpRequest polyfills that make browser-based library available in RN (experimental)
|
11
|
11
|
|
12
|
12
|
## TOC
|
13
|
13
|
* [About](#user-content-about)
|
|
@@ -61,7 +61,7 @@ Open `android/settings.gradle`, and add these lines which will app RNFetchBlob A
|
61
|
61
|
```diff
|
62
|
62
|
include ':app'
|
63
|
63
|
+ include ':react-native-fetch-blob'
|
64
|
|
-+ project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir,' ../node_modules/react-native-fetch-blob/android')
|
|
64
|
++ project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android')
|
65
|
65
|
```
|
66
|
66
|
|
67
|
67
|
Add this line to `MainApplication.java`, so that RNFetchBlob package becomes part of react native package.
|
|
@@ -654,7 +654,7 @@ After `0.8.0` we've made some [Web API polyfills](https://github.com/wkh237/reac
|
654
|
654
|
|
655
|
655
|
---
|
656
|
656
|
|
657
|
|
-**Reduce RCT Bridge Overhead and BASE64 Time**
|
|
657
|
+**Reduce RCT Bridge and BASE64 Overheard**
|
658
|
658
|
|
659
|
659
|
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.
|
660
|
660
|
|