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

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

Open
zvs001 opened this issue Jul 29, 2021 · 2 comments · May be fixed by #2118
Open

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

zvs001 opened this issue Jul 29, 2021 · 2 comments · May be fixed by #2118

Comments

@zvs001
Copy link

zvs001 commented Jul 29, 2021

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
Copy link
Author

zvs001 commented Jul 29, 2021

same issue: #1199

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

@gaearon
Copy link
Contributor

gaearon commented Dec 19, 2024

possible fix #2118

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

Successfully merging a pull request may close this issue.

2 participants