You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
4
4
A project committed to making file access and data transfer easier and more efficient for React Native developers.
5
5
# I forked this project to continue working on it.
6
-
I will soon publish it on npm. So far Android 10 support is added and some other fixes.
7
-
Also, changes are made for feedback (rejected promise) if there is no app to open the given file.
6
+
This project is a fork of https://www.npmjs.com/package/rn-fetch-blob which on the other hand is a fork of https://github.com/wkh237/react-native-fetch-blob.
7
+
Both the original repository and its first fork are not maintianed anymore.
8
8
9
+
The project will be continnued in this repository. React-Native-Blob-Util is fully compatible to RN-Featch-Blob and React-Native-Fetch-Blob. If you want to support the project feel free to contact me or create a pull request with your feature.
9
10
# Version Compatibility Warning
10
-
11
11
react-native-blob-util version 0.10.16 is only compatible with react native 0.60 and up. It should have been a major version bump, we apologize for the mistake. If you are not yet upgraded to react native 0.60 or above, you should remain on react-native-blob-util version 0.10.15
12
12
13
13
## Features
@@ -18,6 +18,15 @@ react-native-blob-util version 0.10.16 is only compatible with react native 0.60
18
18
- Blob, File, XMLHttpRequest polyfills that make browser-based library available in RN (experimental)
19
19
- JSON stream supported base on [Oboe.js](https://github.com/jimhigson/oboe.js/)@jimhigson
20
20
21
+
## Andorid 10 & 11
22
+
Android 10 introduced scoped storage for apps. Apps no longer can create own directories directly on the external storage or access files outside of the apps own directories.
23
+
This currently limits the library to create files in its own directory. This directory is not accessible by other apps.
24
+
If you want to open the files with another app (e.g. images) you can save it to the downloadDir and then open the file with actionViewIntent.
25
+
26
+
This is leading to the problem that all files are deleted when the app is being removed.
27
+
The best and recommanded option to address this issue is, moving the files to a media collection (e.g. galery or downloads). The possibility to do this will be implemented in a future release.
28
+
29
+
For more information see: https://developer.android.com/training/data-storage
21
30
## TOC (visit [Wiki](https://github.com/joltup/react-native-blob-util/wiki) to get the complete documentation)
0 commit comments