meliorence / react-native-snap-carousel

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.37k stars 2.29k forks source link

Style active dot in pagination differently from inactive dots #854

Closed Billmike closed 3 years ago

Billmike commented 3 years ago

(Question.)

Is it possible to style the active dot in the pagination differently from the inactive dots? And not just the color. For instance, changing the width, height, and border-radius (pretty much adding a different style to the active dot) of the active dot

sawane8 commented 3 years ago

Put this in pagination

dotElement={<View style={{width:40, height: 5, backgroundColor:'grey', borderRadius: 20}} />}

flexbox commented 3 years ago

Hey @Billmike

If your problem is solved can you please close the issue? It sparks joy for maintainers ✨