You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I've also opened an issue with react-native-image-picker here: react-native-image-picker/react-native-image-picker#1456 that has additional information on the setup and usage. Although, since I get the same behavior from 2 different image picker packages I'm thinking this package is the true cause of the issue.
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
The text was updated successfully, but these errors were encountered: