react-native-documents / document-picker

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

fix(android): DocumentPicker throw error [Error: User canceled docume… #630

Closed GaryOoi closed 1 year ago

GaryOoi commented 1 year ago

…nt picker]

Fix Error: User canceled document picker Issue with many different devices (Motorola G7, Huawei P30 Pro, Samsung Galaxy Note 9, Huawei P30...). All users with the problem have Android 10.0, but not all users with android 10 have this issue.

refer to: https://github.com/react-native-image-picker/react-native-image-picker/pull/1854

Summary

Issue

https://github.com/rnmods/react-native-document-picker/issues/440

Motivation

fix(android): DocumentPicker throw error [Error: User canceled document picker]

Test Plan

What's required for testing (prerequisites)?

react-native run-android

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS
Android

Checklist

vonovak commented 1 year ago

Hello, Thank you for the PR! 🙂