react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Picker lets me pick pdf/docx in Pixel 3 XL
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.37.3
- react-native v0.67.4
Platform
Tell us to which platform this issue is related
- Android
Expected behaviour
In case I choose "mediaType" to "any" it should only let me pick images/videos but not documents which is working in my Realme XT but that is not the case with Google Pixel 3 XL.
Actual behaviour
I am able to select pdf/docs from file manager in case mediaType is "any".
Steps to reproduce
-
Handle upload as below ImageCropPicker.openPicker({ mediaType: "any", multiple: true, }).then((media) => { setMedia(media) });
-
Try Selecting PDF/Docx files from file manager.
Attachments
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate