Closed art1373 closed 3 years ago
You can use these methods or the swipeBack one.
If this wasn't what you were looking for, please reopen the issue.
I would also like some clarification here. The documentation only shows how these methods can be employed within a class component. There is no indication as to how the methods of the Swiper e.g. swipeBack
, can be called from inside a functional component that cannot invoke the this
property.
I know this is not an issue but rather a request for insight about how things work in this component.
I made a swiper component and I pass the config and the data via props. now, how can I use the ref of the parent to initiate children's swipe methods? because my Buttons live outside of the component
parent.js
and the actual component