In my application, I use the react-native-swiper component. Initially it worked properly, but recently it has a strange behaviour. It has 5 windows and it swipes like this. 5-1-2-3-4-5-1
it swipes 7 times and the items are like this. starts from the first one. I can swipe left once. Swipe right 5 times. Thats all.
How can I solve this issue? I use the version 1.5.6
import React from "react";
import { Dimensions } from "react-native";
import Swiper from "react-native-swiper";
import SwiperWindow from "../SwiperWindow/SwiperWindow";
const height = Dimensions.get("window").height * 0.3;
const swiperContainer = props => (
<Swiper height={height}
showsButtons={true}
showsPagination={false}>
{props.featuredWorkouts.map(featuredWorkout => {
return(
<SwiperWindow
key={featuredWorkout.featuredWorkoutId}
imageSource={featuredWorkout.postImage}
workoutTitle={featuredWorkout.title}
/>)
})}
</Swiper>
);
export default swiperContainer;