react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
openCropper is not working for IOS: view is not in the window hierarchy
I see this error in log:
[Presentation] Attempt to present
<TOCropViewController: 0x10d126a00> on <PHPickerViewController: 0x10be14b80> (from <PHPickerViewController: 0x10be14b80>)
whose view is not in the window hierarchy.
Version
- react-native-image-crop-picker v0.36.2
- react-native v0.63.3
Platform
- iOS (14.5.1)
Expected behaviour
Modal can be opened.
Actual behaviour
Modal is not shown. No errors. No callback execution.
Steps to reproduce
When i call openCropper(), it doesn't show modal for some pictures.
Sometimes modal can be opened, but not for same picture.
same issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/1199
Workaround with timeout temporary can help, but it is not stable.
possible fix https://github.com/ivpusic/react-native-image-crop-picker/pull/2118