react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
VIVO Phone Error: User cancelled image selection
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.23.1
- react-native v0.59.5
Platform
Tell us to which platform this issue is related
- Android
- VIVO V2057A ; vivo ROM:Funtouch OS_10.5; Android10
Expected behaviour
Without opening the album, the information in the catch is Error: User cancelled image selection
It turned out to be possible, but the problem occurred after the mobile phone system was upgraded.
Actual behaviour
Ability to open albums and select photos
Steps to reproduce
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
+1
Change PickerModule.java
final Intent chooserIntent = Intent.createChooser(galleryIntent, "Pick an image");
activity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST);
to
activity.startActivityForResult(galleryIntent, IMAGE_PICKER_REQUEST);
it worked
@kurisu994 Yeah, it works fine, but I don't know why it happens on Vivo Android 10 phones, I prefer not use patch-package to hack it like you wrote in issue #1832 as a real solution, so in my issue #1831 I say it's a "temporary solution", and this only applies to vivo.
@kurisu994 ty