Skip to content

[iOS] Cannot open image picker after using ModalSelector #154

Description

@scousino

On iOS, after using the ModalSelector, you cannot open other modals from different libraries. For example, this package breaks both react-native-image-picker and react-native-image-crop-picker's ability to launch a gallery for selecting images/videos.

My inclination is that maybe this library isn't correctly closing and cleaning up a modal after it has been "closed" via cancel or an option being selected.

This is logged in XCode when trying to call launchImageLibrary, after selecting an option from the modal selector, for react-native-image-picker:
Attempt to present <UIImagePickerController: 0x10b03dc00> on <RCTModalHostViewController: 0x113f8e0f0> (from <RCTModalHostViewController: 0x113f8e0f0>) whose view is not in the window hierarchy.

which is what makes me think react-native-modal-selector is doing something to RCTModalHostViewController

iOS Version: 14.1
React Native version: 0.62.2
react-native-modal-selector: 2.0.2
react-native-image-picker: 3.0.0-vnext.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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