react-native-swiper
react-native-swiper copied to clipboard
Overflowing controls with many swiper items, ideas?
Any ideas or best practices for what to do with control buttons when you have more than fit on the screen? Example below:

I did this:
<Swiper
index={taskIndex}
loadMinimal
loadMinimalLoader={<Loading />}
renderPagination={(index, total, context) => {
if (total < 20) return context.renderPagination();
return <View style={style.pagination}><Text>{`${index} / ${total}`}</Text></View>
}}
>
You might want to think about changing the design and utilizing numbered pagination instead of all those dots. Just a suggestion!
You can check if swiper greater than X make dot small.
dot: {
height: 4,
width: 4,
marginLeft:2,
marginRight:2,
},
<Swiper
style={styles.mainContainer}
index={0}
loop={false}
dotStyle={[styles.dot, styles.dotOpacity]}
activeDotStyle={[styles.dot, styles.activeDot]}
bounces
>