menu

react-id-swiper

Discussion for bugs and new features

Channels
Team

Problem with loop

February 3, 2020 at 12:26pm
Can smb help me with looping slider, it just do not work. All is working except loop prop(
<Slides /> mapping array[slides] from server and return slides components.
function FundSwiper({slides}) { const params = { loop: true, };
return ( <Swiper containerClass={'slides-content js-swiper swiper-container-horizontal'} wrapperClass={'slides-wrapper'} shouldSwiperUpdate renderNextButton={() => <NavButton direction={'next'}/>} renderPrevButton={() => <NavButton direction={'prev'}/>} navigation={{ nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }} {...params} > <Slides slides={slides}/> </Swiper> ); }
No messages yet