Close on swipe not working properly
See original GitHub issueI 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>
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top 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 >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
Hey @appify-waheed we just renamed the
onSwipe
prop toonSwipeComplete
, you’re probably using the version that uses theonSwipe
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 renameonSwipeComplete
toonSwipe
).@appify-waheed Can you provide a reproducible repository ?