I'd like to be able to disable swipe to change tabs for a specific tab.
Reason: one of my tabs has a Tinder-style card swiper, and the gestures for swiping on the cards and changing tabs can conflict.
The swipe gesture is a fast and easy way for a user to switch tabs, so it would be useful to preserve this feature for the rest of my tabs.
The API for <TabViewPagerPan /> has a swipeEnabled prop but no way to disable for specific tabs.
Sorry, I have no idea how I could circumvent this. Is there some gesture "filter" that will funnel gestures only to a specific component?
I read the source code for TabViewPagerPan but couldn't find anything to solve this problem. I also carefully searched previous issues in this repo, and couldn't find anything similar.
Thank you for your help!
Have you tried setting swipeEnabled prop based on your state?
Perfect. Thank you so much!
Most helpful comment
Have you tried setting
swipeEnabledprop based on your state?