react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Doesn't work on Android 11 #533

Closed ismailonur closed 2 years ago

ismailonur commented 2 years ago

Bug report

It works on Android 10 (API Level 29) but not on Android 11 (API Level 30). The only difference is android version.

Environment info

library version: 8.0.0

Android version: 11.0

DoHue97 commented 2 years ago

Bug Report

I also have this problem on my real device! Is there any way to deal with this?

DioSerdar commented 2 years ago

use copyTo:"cachesDirectory" for android > 10 then use fileCopyUri field to access it. you might need to add "file://" at the beginning as well. this should be mentioned in project docs.

vonovak commented 2 years ago

hello, it's hard to have a meaningful discussion when all you say is "it does not work". 🤷‍♂️

Please follow the issue template. What is the expected behavior and what is the observed behavior? What code reproduces the issue?

Please open a new issue with this. Thank you