react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

Question: detect Horizontal swipe of the content

Open oferRounds opened this issue 5 years ago • 5 comments

Hi!

My bottom sheets present sort of tabs view – and I’d like the user to be able to move between the tabs by swiping left and right

I wrapped the content with FlingGestureHandler of react-native-gesture-handler, but it fails to detect the swipe. Any idea?

Thank you!

oferRounds avatar Feb 19 '20 11:02 oferRounds

I'm facing the same issue! Tried using a ScrollView with horizontal scrolling and snapping enabled but didn't have any luck.

simaonogueira101 avatar Mar 05 '20 18:03 simaonogueira101

+1

FrankFundel avatar Mar 19 '20 21:03 FrankFundel

+1

dimgarof avatar Jul 20 '20 14:07 dimgarof

+1

david03g avatar Jan 08 '21 01:01 david03g

Make sure you're wrapping the component you render inside the renderContent prop inside the <FlingGestureHandler /> and NOT the whole <BottomSheet /> component. I did the latter first and it didn't work. The former registers gesture events for me.

trentcowden avatar Mar 31 '21 00:03 trentcowden