0
Good afternoon, I am creating a list with Swiper but after rendering it does not change the activeDot
var obj = -1
const render = _.map(this.state.arrayFavorites, (itens) => {
obj++
return <View key={obj}>
<TouchableWithoutFeedback
onPress={() => Actions.salonProfileTabs({ backButton: true, salon: itens })}>
<View style={styles.favoriteContainer}>
<Image
source={{ uri: itens.imagesURL.image1 }}
style={styles.favoriteBackground}
/>
<View style={styles.favoriteOverlay} />
<TouchableOpacity
style={styles.deleteButton}
onPress={() => this.unfavorite(itens)}>
<Image style={{ height: 20, width: 20 }} source={Images.delete} />
</TouchableOpacity>
<Text style={styles.salonNameText}>{itens.nome}</Text>
<View style={styles.ratingView}>
<StarRating
disabled={true}
rating={itens.rating}
starColor={"#E9AA03"}
starSize={10}
starStyle={{
marginRight: 5,
}}
halfStarEnabled={true}
/>
<Text style={styles.numRatingsText}>
({itens.numRatings} avaliações)
</Text>
</View>
</View>
</TouchableWithoutFeedback>
</View>
})
return (
<View style={styles.favoritesView}>
<Swiper
activeDot=""
dot=""
style={styles.favoritesList}>
{
render
}
</Swiper>
{this.renderModalRating()}
</View>
);