react-native-image-crop-picker: openCamera freezes on photo preview screen after canceling crop
Looks like the new feature that allows you to stay in the camera after canceling a crop doesn’t work for openCamera
Version
- react-native-image-crop-picker: v0.14.1
- react-native v0.42.0
Platform
- iOS
Expected behaviour
Clicking Cancel on the cropper should take you back to functioning photo preview screen.
Actual behaviour
The cropper closes properly, but the resulting photo preview screen is frozen.
Steps to reproduce
-
Use
openCamerawithcropping: true -
Take Photo (Camera) -> Use Photo (Photo Preview) -> Cancel (Cropper)
-
Delivered back to the Photo Preview screen but it is frozen
Attachments
// stacktrace or any other useful debug info
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 28 (4 by maintainers)
@Jobeso I am not sure if thats the perfect solution so creating a PR wont be of much use. Here is the code for your reference. Change following in ImageCropPicker.m
fixed in version https://github.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.17.0
@ivpusic Thanks for fixing that, my app no longer freezes but it now quits the whole openCamera flow. Is this expected behavior? I think, ideally, after clicking cancel when cropping a photo, it should take you back to functioning photo preview screen.
Is this possible? Any pointers how it can be done?
@jinxac could you provide this version or create a PR?