Replies: 2 comments
-
@mjvestal Hi, did you find an answer? Every time I scroll, it triggers my pressable or touch feedback. I really appreciate your help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd also like a solution to this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My items render cards wrapped by
TouchableHighlight
fromreact-native-gesture-handler
. When scrolling a horizontal carousel, the item under my finger shows the touch highlight and I'd like it to not.Googling, I found that in general the practice for disabling touch feedback while scrolling is to set
disabled={true}
on the RNGH touchable while scrolling, anddisabled={false}
when not scrolling. However this approach doesn't work with carousel because of this issue: #244 - Pressing an item callsonScrollBegin
but notonScrollEnd
so mydisableItemPress
state is lefttrue
, which breaks pressing items.So my question is: Is there an alternative approach to rendering a carousel of items with touch feedback with feedback suppressed while scrolling the carousel?
Beta Was this translation helpful? Give feedback.
All reactions