Open m-wasilewski opened 4 years ago
Both (Android & iOS)
Which versions are you using:
All declared slides (static and dynamic) should display per one screen
If we declare slides and add dynamic data (with .map()) then all dynamic data are loaded on one slide :(
.map()
<Swiper showsButtons> <View style={styles.slide1}> <Text style={styles.text}>Look at next!!?!</Text> </View> {this.state.items.map((item, key) => { return ( <View key={key} style={item.css}> <Text style={styles.text}>{item.title}</Text> </View> ) })} <View style={styles.slide1}> <Text style={styles.text}>What happened there?</Text> </View> </Swiper>
Please look at that demo: https://snack.expo.io/@donwasyl/swipe---slide-bug
I fixed it and pushed pull request
This fix works. Thanks
Confirming this issue and fix
please merge it
Which OS ?
Both (Android & iOS)
Version
Which versions are you using:
Expected behaviour
All declared slides (static and dynamic) should display per one screen
Actual behaviour
If we declare slides and add dynamic data (with
.map()
) then all dynamic data are loaded on one slide :(How to reproduce it>
Please look at that demo: https://snack.expo.io/@donwasyl/swipe---slide-bug