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.

Close on swipe not working properly

See original GitHub issue

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 i use swipe event this not working very well or expected modal is stuck in centre of the sometimes and even there is also a jerk while closing modal, and modal is not closing even after on reaching swipeThreshold. Here is my code. <Modal isVisible={this.state.modalVisible} swipeDirection='left' swipeThreshold={90} onSwipeComplete={()=>this.handleCloseModal()} > <MediaView mediaData={this.props.data} /> </Modal>

ezgif com-video-to-gif 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mmazzarolocommented, Feb 21, 2019

Hey @appify-waheed we just renamed the onSwipe prop to onSwipeComplete, you’re probably using the version that uses the onSwipe name only.
Could you please use the latest beta version of react-native-modal? npm i -S react-native-modal@8.0.0-beta.1/yarn add react-native-modal@8.0.0-beta.1 (or just rename onSwipeComplete to onSwipe).

0reactions
ancyrwebcommented, Mar 7, 2019

@appify-waheed Can you provide a reproducible repository ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swipe up no longer closes apps on iPad! - Apple Community
To quit an app, open the App Switcher, then swipe up on the app. To reopen the app, go to the Home Screen,...
Read more >
iPhone Swipe Up Not Working (Solved!) - The Gadget Buyer
You don't expect your iPhone to stop swiping in a certain direction, but then it happens. You can no longer swipe up.
Read more >
Fix Can't Swipe Up and Close Apps after iOS 15/14/13 Update
This article is guiding you through some of the solutions to unable to swipe up and close apps on your iPhone 6 to...
Read more >
10 Ways to Fix iPhone Swipe Up Not Working - iMobie
If the iPhone swipe up has suddenly stopped working, don't panic and follow our guide below to learn some of the solutions to...
Read more >
How to Fix Swipe Up & Down Not Working in iPhone ...
iPhone Swipe Up & Down Not Working (Notification, Control Center, App Switcher Close ) #SwipeUP #iPhone #Touch Facebook ...
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