Closed into-piece closed 6 years ago
<ReactSwipe className="carousel" className={style.carousel} swipeOptions={{ continuous: true, auto: 3000, callback: function(index, elem) { $(".current").html(index+1) } }}> { props.detailBanner.map((item,index)=>{ return( <div key={index}> <img src={item}/> </div> ) }) } </ReactSwipe>
There is an error that Cannot show image
I have solved this problem by using a condition sentence which can Synchronize image in state and your swipe plug-in components
There is an error that Cannot show image