ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

Getting Error "User did not grant library permission." in Android 10 #2105

Open SKHRAPP opened 1 week ago

SKHRAPP commented 1 week ago

Version

Platform

Expected behaviour

getting error in android 10 devices with error User did not grant library permission. recently

code

  const cropAndSendToBackend = async imagePath => {
    try {
      const croppedImage = await ImagePicker.openCropper({
        path: imagePath,
        width: 200,
        height: 200,
        cropping: true,
        cropperCircleOverlay: false, // Set to true if you want a circular crop
      });
      return croppedImage;
    } catch (error) {
      alert(error);
    } finally {
    }
  };

Screenshot_20241016-103529

Devyadav3001 commented 1 week ago

"I am getting an error on Android 10 devices with the message 'User did not grant library permission' when using react-native-image-crop-picker version 0.41.4. However, the previous version (0.40.1) works properly."

nishadthajudeen001 commented 6 days ago

any update on this issue?