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

App crashes or not responding in release #2096

Open
rbl-simonamanu opened this issue Oct 2, 2024 · 1 comment
Open

App crashes or not responding in release #2096

rbl-simonamanu opened this issue Oct 2, 2024 · 1 comment

Comments

@rbl-simonamanu
Copy link

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.40.3
  • react-native v0.72.3

Platform

Tell us to which platform this issue is related

  • Android

Actual behavior

The app crashes or does not respond when taking pictures in prod build.

This is how I use the function :

ImagePicker.openCamera({
    cropping: false,
    mediaType: 'photo',
    forceJpg: true,
    includeExif: true,
    compressImageQuality: 0.99
  })

If I decrease the quality to 0.8 is working. but why? I want to keep a bigger quality
Reproducible on Samsung with Android 13

@santisilva
Copy link

Do you still have this problem? try this:
add # For react-native-image-crop-picker -keep class com.reactnative.imagecroppicker.** { *; } -keep class com.yalantis.ucrop.** { *; }
in android/app/proguard-rules.pro

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

2 participants