question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event "onSwipeToClose" is not working

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
pavelbabenkocommented, Mar 15, 2022

@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.

3reactions
gerryfletchcommented, Mar 10, 2022

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 as 2.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found