react-native-image-crop-picker: Image is not loaded in crop screen. Infinity loading.
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.21.3
- react-native v0.57.4
Platform
Tell us to which platform this issue is related
- Android
Expected behavior
Always possible to crop a picture, after selection image shows in crop screen.
Actual behaviour
After some time of using app and picking images, it stuck in loading state on crop screen.
Steps to reproduce
-
Pick and crop several images (all the time, it happens after undefined number of repetition) - either gallery or camera. Standard options
{ width: 400, height: 300, cropping: true }
-
At some point of time, when user tries to pick and crop another picture, he gets Infiniti loading indicator on crop screen (with no image on it)
Attachments
I’ve tried to find anything in logcat, but there is no error/warning/specific debug info at the point of time when it happens.
Another (hopefully) useful info: when it happens, the top left button to dismiss picker is still active, and if tap it, as expected, it goes back to app. When it happens, all the next attempts to pick image (either camera or gallery) gives the same result - stuck in crop screen. No “memoryWarning” events happen during testing.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 32
- Comments: 29
I’m having the same error, so far, I did not find a good solution beyond restarting the application that worked for me some times
re-starting app helps me too, but it isn’t good for users 😕
I am able to successfully crop on Android in production. It seems this issue might be only present in testing. I, however, only tested Camera. I will try to test picker later.
Can confirm the issue persists in react .60, only with android: “react-native-image-crop-picker”: “0.25.0”, “react-native”: “0.60.5”,
Glad to hear that it works for more than just me. I tested picker as well and it works fine. Seems this is a dev-only issue and should help alleviate a lot of concerns. It would still be great to have it fixed on that end, though, for just the peace of mind.
Broken for me as well “react-native”: “0.60.5”, “react-native-image-crop-picker”: “^0.25.0”,