abdurrahmanekr / bana-istedigini-sor

Yeni paylaştığım yazılardan haberdar olmak için bloguma abone olun:
https://avarekodcu.com
12 stars 1 forks source link

React Native Swiper Otomatik Dönmüyor #82

Closed onuraggez closed 5 years ago

onuraggez commented 5 years ago

render() { let image = []; for(let i = 0; i < this.state.sliderLength; i++){ image.push( <Image source = {{uri:Static.ImagePath + this.state.data.Company.Sliders[i].ImagePath}} style = {styles.imageStyle} resizeMode = 'contain'/> ) } return ( <Swiper style = {styles.sliderStyle} showsButtons = {false} autoplay = {true}> {image} ); } Abdurrahman bey merhabalar ben web api ile aldığım resimleri swiper kullanarak bir slider yapmaya çalışıyorum resimler swiper'a geliyor elimle oynatabiliyorum ama otomatik olarak oynatamıyorum resimleri swiper'ın içinde sizce sebebi ne olabilir. Normal swiper'ın altına static olarak resim koyduğumda oynuyor ama böyle yapınca olmuyor. Bildiğiniz başka bir kütüphane varsa bakabileceğim ya da burada bir yerde mantık hatası yapıyorsam yardım etmenizi istiyorum. Teşekkür ederim.