sanfilippopablo / react-swipeable-routes

Utility for integrating react-swipeable-views with react-router.
MIT License
75 stars 14 forks source link

Swipe event props #12

Closed MatteoGioioso closed 5 years ago

MatteoGioioso commented 5 years ago

Hello

Is it possible to access the swipe events?

onSwiping, onSwipingRight, onSwipingLeft

Thanks

sanfilippopablo commented 5 years ago

Are those real SwipeableViews props? I can't find them here: https://react-swipeable-views.com/api/api/

MatteoGioioso commented 5 years ago

Sorry, I presumed that SwipeableViews, had something similar, but yea, I just need to know if I could access the events from SwipeableViews.

Thanks

sanfilippopablo commented 5 years ago

Yes. Just pass props to SwipeableRoutes and the will be passed down to SwipeableViews.

MatteoGioioso commented 5 years ago

Alright then! Sorry, I did not notice it in the docs.

Thanks