Closing the full modal
See original GitHub issueHow do i programmatically close the full screen view without having to tap the X ?
<ImageModal ref = {ref => this.previewBox = ref}...
this.previewBox.close()
or something ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Close Bootstrap Modal - jquery - Stack Overflow
// We use data-dismiss property of modal-up in html to close the modal-up,such as <div class='modal-footer'><button type='button' class="btn btn-default" data- ...
Read more >Modal - Bootstrap
Tooltips and popovers can be placed within modals as needed. When modals are closed, any tooltips and popovers within are also automatically dismissed....
Read more >How to handle the modal closing event in Twitter Bootstrap?
modal : This event is fired when the modal has finished being hidden from the user and will then wait for CSS transitions...
Read more >Close modal screen with a button - Coda Maker Community
Closing a modal form works with escape or by clicking the ''X" at the top of the screen. Closing a full-screen modal can...
Read more >How to close modal in Bootstrap - code helpers
There are few ways to close modal in Bootstrap: click on a backdrop, close icon, or close button. You can also use JavaScript...
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 FreeTop 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
Top GitHub Comments
@vrgimael
Now, you can use
Ref
to close the modal programmatically.Please update the
react-native-image-modal
tov1.0.12
.useRef
https://github.com/dev-yakuza/react-native-image-modal/blob/b5257b1928d17c6456f38df53b9bc66fff2390ef/Example/App.tsx#L1ImageDetail
type if you use typescript https://github.com/dev-yakuza/react-native-image-modal/blob/b5257b1928d17c6456f38df53b9bc66fff2390ef/Example/App.tsx#L12Ref
https://github.com/dev-yakuza/react-native-image-modal/blob/b5257b1928d17c6456f38df53b9bc66fff2390ef/Example/App.tsx#L34Ref
https://github.com/dev-yakuza/react-native-image-modal/blob/b5257b1928d17c6456f38df53b9bc66fff2390ef/Example/App.tsx#L190Ref
https://github.com/dev-yakuza/react-native-image-modal/blob/b5257b1928d17c6456f38df53b9bc66fff2390ef/Example/App.tsx#L202I hope you can solve the problem with this update!
Thanks
Hi @vrgimael ✋
Thanks for your opinions and for reporting the bug. 🙇♂️
I will add the
ref
anddisabled
props and I think it will solve the bug with scrolling. You can disable and enable the opening model feature when the user scrolls the list. 🤔I will add them asap! 🚀
Thanks