Closed Mgxcx closed 3 years ago
Some notice from this theme?
Maybe this can help you
create a ref
const swiperRef = useRef<any>(null);
Use the component without index
<Swiper ref={swiperRef} loop={false} // index={step} autoplay={false} showsButtons={false} scrollEnabled={false} showsPagination={false} />
swiperRef.current.scrollTo(position);
It works ! Thanks a lot 🙏
Hi !
I used the Horizontal Step Indicator Example. And I added a little functionality : I passed nextPage props to my step screens, and I called this props on a button click in each step screen in order to change the currentPage state index and swipe to the next page:
It works well on iOS but not on Android, and I don't understand where the issue is...
You can see my code below :
Thanks for your help 🙏