Event "onSwipeToClose" is not working
See original GitHub issueI am using the library for the image zoom feature and am thankful to the authors that they build it. But I am not able to get work “onSwipeToClose” event but all other events are working for me. I am using it as below. Any help will be appreciated thanks! @pavelbabenko @alantoa
<CustomModal isModalVisible={openZoomViewer} backdropOpacity={1}> <Gallery data={image} hideAdjacentImagesOnScaledImage={true} disableSwipeUp={true} renderItem={renderItem} onSwipeToClose={closeZoomViewer} onDoubleTap={closeZoomViewer} onIndexChange={(newIndex) => { console.log(newIndex); }} style={{ alignSelf: 'center' }} /> </CustomModal>
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:14 (9 by maintainers)
Top Results From Across the Web
jQuery Mobile swipe event not working - Stack Overflow
Support is pretty simple - when user swipe left or right it triggers corresponding function. However, event is not triggered during swipe ......
Read more >Close on swipe not working properly · Issue #258 - GitHub
I am using react-native-modal component into for displaying some pictures and i want to close this modal on some swipe event but when...
Read more >Swipe up to close apps not working with swipe left/right
Was this a problem in previous software versions: Expected behavior: Any other comments: Earlier i was using all the options swipe up/swipe left/swipe...
Read more >Use Control Center on your Apple Watch
Touch and hold the bottom of the watch face. Wait for Control Center to show, then swipe up. You can open Control Center...
Read more >ion-modal: Ionic Mobile App Custom Modal API Component
ion-modal is a dialog that appears on top of mobile app content, and must be dismissed before interaction resumes. Learn more about custom...
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
@alantoa @felippepuhle If you have any changes which you think should be merged and released - create your pull request, please. I don’t have much time to work on my library because of the current situation in Ukraine, but I’ll review all pull requests and create new releases.
I was about to reply that I was having the same issue but I went ahead and downgraded all of my dependencies to the same as the example: https://github.com/Flair-Dev/react-native-awesome-gallery/blob/main/example/package.json
And it works. The culprit for me was
react-native-gesture-handler
, which I had as2.2.0
but the example package is on the previous major version,1.10.1
.Downgrading a major version may or may not be acceptable for your use cases. It would be great if this library could be updated for the new API.