React-native-interactable: Add direction specific touch blocker for Android

Created on 3 Apr 2017  路  7Comments  路  Source: wix/react-native-interactable

Is there a possibility to add, in addition to 'blockAllTouch', something like 'blockVerticalSwipe' && 'blockHorizontalSwipe'? Having some problems with a ListView that sits inside a horizontal carousel, that sits inside a vertical Interactable. The blocker _does_ solve the problem of the ListView and it's scrolling regularly, but I can't swipe inside the carousel, as all touch events are blocked inside the ListView. If I could block only vertical swipes, the combination of the Interactable + carousel + ListView would've worked.

Sorry I don't just open a PR to solve this - I'm not familiar with neither Objective-C nor Java.

All 7 comments

@LoyalBlocks-tzachi:
Tried to add it by myself, please see whether you'd want to add this feature: https://github.com/wix/react-native-interactable/pull/52

+1

We definitely want the feature, @ButtersHub will review it soon. He just wanted to finish with the new iOS features I added (snapTo, dragEnabled, onDrag event)

@portons sorry for the lack of progress, everybody has been on vacation for the last week (due to Easter and Passover holidays). Things should get back to normal around Tue

merged @portons's PR to touchBlockerBranch, you are welcome to try it, there is new case in the example project, it look like this:
interceptionblocker

@ButtersHub @talkol Thanks a lot! Will test in our project after Passover :)

Seems like this is already solved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jp928 picture jp928  路  4Comments

emretekince picture emretekince  路  5Comments

dmitryusikriseapps picture dmitryusikriseapps  路  3Comments

sewerrat picture sewerrat  路  7Comments

brentvatne picture brentvatne  路  6Comments