Skip to content

Commit da1f070

Browse files
committed
Remind user of installing react-native-blob-util@0.16.3
1 parent a6e6c0c commit da1f070

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FileReader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@
314314
// input as a good lib should do, but since react-native-filereader can not be a
315315
// polyfill as described in READEM.md and I still want as simple as possible, I do
316316
// not want to `new File()` into `StateLoader.uploadGif()` in
317-
// https://github.com/flyskywhy/PixelShapeRN/blob/v1.1.20/src/components/apptoolbox/Apptoolbox.js
317+
// https://github.com/flyskywhy/PixelShapeRN/blob/v1.1.21/src/components/apptoolbox/Apptoolbox.js
318318
// and need port https://github.com/node-file-api/File/blob/master/File.js as well,
319319
// so I use below to reassign input to file so that I can just add
320320
// `import FileReader from 'react-native-filereader'` in
321-
// https://github.com/flyskywhy/PixelShapeRN/blob/v1.1.20/src/libs/GifLoader.js
321+
// https://github.com/flyskywhy/PixelShapeRN/blob/v1.1.21/src/libs/GifLoader.js
322322
// (and thus avoid crash in PixelShapeRN)
323323
file = input;
324324
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ React Native FileReader
44
[![npm version](http://img.shields.io/npm/v/react-native-filereader.svg?style=flat-square)](https://npmjs.org/package/react-native-filereader "View this project on npm")
55
[![npm downloads](http://img.shields.io/npm/dm/react-native-filereader.svg?style=flat-square)](https://npmjs.org/package/react-native-filereader "View this project on npm")
66
[![npm licence](http://img.shields.io/npm/l/react-native-filereader.svg?style=flat-square)](https://npmjs.org/package/react-native-filereader "View this project on npm")
7-
[![Platform](https://img.shields.io/badge/platform-ios%20%7C%20android-989898.svg?style=flat-square)](https://npmjs.org/package/react-native-filereader "View this project on npm")
7+
[![Platform](https://img.shields.io/badge/platform-ios%20%7C%20android%20%7C%20web-989898.svg?style=flat-square)](https://npmjs.org/package/react-native-filereader "View this project on npm")
88

99
HTML5 FileAPI `FileReader` for React Native, thus `FileReader.readAsArrayBuffer` can work as well which is not implemented in `react-native/Libraries/Blob/FileReader.js` .
1010

1111
See <https://developer.mozilla.org/en-US/docs/Web/API/FileReader>
1212

1313
## Install
14-
npm install react-native-filereader
14+
npm install react-native-filereader react-native-blob-util@0.16.3
1515

1616
You need request permission first in your APP, e.g. `android.permission.READ_EXTERNAL_STORAGE` with [react-native-permissions](https://github.com/zoontek/react-native-permissions).
1717

0 commit comments

Comments
 (0)