Skip to content

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

Open
@zvs001

Description

@zvs001

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions