react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

VIVO Phone Error: User cancelled image selection

Open yoyo0427 opened this issue 3 years ago • 3 comments

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

yoyo0427 avatar Jul 20 '22 05:07 yoyo0427

+1

Aliveing avatar Aug 17 '22 07:08 Aliveing

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 avatar Aug 20 '22 03:08 kurisu994

@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.

Aliveing avatar Aug 29 '22 10:08 Aliveing

@kurisu994 ty

diazbeltran avatar Oct 24 '22 16:10 diazbeltran