react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

openCropper is not working for IOS: view is not in the window hierarchy

Open zvs001 opened this issue 4 years ago • 2 comments

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.

zvs001 avatar Jul 29 '21 13:07 zvs001

same issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/1199

Workaround with timeout temporary can help, but it is not stable.

zvs001 avatar Jul 29 '21 15:07 zvs001

possible fix https://github.com/ivpusic/react-native-image-crop-picker/pull/2118

gaearon avatar Dec 19 '24 21:12 gaearon