document-picker
                                
                                 document-picker copied to clipboard
                                
                                    document-picker copied to clipboard
                            
                            
                            
                        [Android 13, 14]: DocumentPicker throws an error [Error: User canceled document picker]
Bug report
Summary
DocumentPicker throws an error [Error: User canceled document picker] on Android 13 and 14. I found the same issue that has been fixed here which works perfectly with the latest version of the library (including Android 12) but fails on Android 13 and 14 with the same error.
Reproducible sample code
The issue is reproducible on Android devices with 13 and 14 versions of OS.
Steps to reproduce
- Update your Android device to the latest OS version (14)
- Update the document picker starting from version 8.1.4 (8.1.3 is the last working version in this case)
- Pick a file
- Get an error
Describe what you expected to happen:
- Document picker loads file(s)
Environment info
- "react-native": "0.72.6"
- "react-native-document-picker": "9.1.0",
Android version: 14.0