Opening image picker from within modal
See original GitHub issueWhen the image picker is triggered from within a page that was opened using showModal(), the picker is loaded behind the page. Is there any way to work around this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Present UIImagePickerController inside a modal view or form ...
In my iPad app I have this image picker and I would like to present it in a 500x500 modal view centred on...
Read more >Modal & Inline - Image Picker 1.3 - HazzardWeb Docs
The fist option is to have the ImagePicker as a modal. For this you have to define the modal html a button that...
Read more >Use an image picker - Expo Documentation
expo-image-picker provides the launchImageLibraryAsync() method that displays the system UI for choosing an image or a video from the device's media library. We ......
Read more >How to pick images from Camera & Gallery in React Native app
In the above code, we will open an Image picker as you Click on “chooseImage” and will show the selected image on the...
Read more >Example of Image Picker in React Native
To use ImagePicker we need to install react-native-image-picker dependency. To install this open the terminal and jump into your project using cd ProjectName....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I was facing the same issue with the error of window hierarchy, I Solved it by just adding a Timeout of 10 milliseconds.
@mailiam @tbozhikov
Even with the latest version of this plugin, I am still not able to open the ImagePicker in an existing modal. Here is my example project that:
ViewChild, but also tried throughshownModallyevent)NativeElementproperty of thatPagereference to ImagePicker createIt does open the ImagePicker but it will open an new modal on top of the existing one.
Note: the Page object I get does seem to be the top element, since its parent is undefined and it does contain the
viewControllerproperty that this piece of code is looking forAny ideas?
EDIT: is what I am seeing actually expected behavior? I was under the impression that the additional
hostViewparameter would allow the ImagePicker to open in the existing modal?