Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android App crashes when using cropping true #2039

Open
Shahid157 opened this issue Mar 27, 2024 · 0 comments
Open

Android App crashes when using cropping true #2039

Shahid157 opened this issue Mar 27, 2024 · 0 comments

Comments

@Shahid157
Copy link

Shahid157 commented Mar 27, 2024

Version

Library version

  • react-native-image-crop-picker V0.40.3
  • react-native 0.71.1

Platform

- Android

Expected behaviour

After selecting the image from the gallery it should take the image to cropping

Actual behaviour

After selecting the image from gallery app crashes without going to cropping.
it's only happening when we set the cropping true,

const imagePickerConfig = {
mediaType: "photo",
width: 1280,
height:720,
compressImageQuality: 0.2,
compressImageMaxWidth:1280,
compressImageMaxHeight: 720,
cropping: true , // if set that to false the android app will not crash and it's only happening in android.
freeStyleCropEnabled: false,
includeBase64: false,
};

Steps to reproduce

  1. Click to open the bottom sheet for selecting the image

  2. now select the browse option from the bottom sheet instead of selecting the image from bottom sheet

  3. after browse select the image and android app crashes.

Attachments

image

that's the Exception got from logcat.

// Exception thrown during dispatchAppVisibility Window{e7747aa u0 com.package.com/com.yalantis.ucrop.UCropActivity EXITING}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant