Can not zoom, swipe list images when using Modal
See original GitHub issuereact-native: 0.65.1 react-native-awessome-gallery: 0.2.6 react-native-reanimated: 2.2.3
Code
<Modal visible={true}>
<Gallery
ref={galleryRef}
data={props.imageUrls}
maxScale={10}
initialIndex={props.defaultIndex}
onIndexChange={setSelectedImage}
/>
</Modal>
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How do I prevent the image in the background from zooming ...
I have 4 pictures and a background image and I wrote a modal for each of them. When I click on the image...
Read more >The Essential Ionic Image Zoom Guide (Modal & Cards)
Implement Ionic image zoom within a modal with transparent background, Ionic image zoom from code and a Instagram like list zoom !
Read more >The Essential Ionic Image Zoom Guide (Modal & Cards)
There is a section inside the Swiper API about image zoom, which is all we need! To zoom images within the Ionic slides,...
Read more >react-medium-image-zoom - npm
Start using react-medium-image-zoom in your project by running `npm i ... Tell the component whether or not it should be zoomed // Default: ......
Read more >Modal - Bootstrap
Modals are built with HTML, CSS, and JavaScript. · Clicking on the modal “backdrop” will automatically close the modal. · Bootstrap only supports...
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
You need to wrap the gallery with
GestureHandlerRootView
if you’re using it inside a modal on Android.import { GestureHandlerRootView } from 'react-native-gesture-handler';
Maybe this could be handled by the library itself? @pavelbabenko
https://docs.swmansion.com/react-native-gesture-handler/docs/#for-library-authors
Tested on Android with v0.3.0. Everything worked well.
Note: v0.3.0 uses Gesture Handler v2
I’m closing the issue, but if the bug appears, please reopen it again.