reactrondev / react-native-web-swiper

Swiper-Slider for React-Native and React-Native-Web
213 stars 55 forks source link

Pass activeIndex to DotComponent in addition avec isActive #61

Closed kopax closed 2 years ago

kopax commented 3 years ago

Within a slider, I want to colorate the dot which have been passed in green, the current in red, and the next in grey.

With isActive, I am only able to colorate the current and others,

This ticket is adding activeIndex to the DotComponent here: https://github.com/reactrondev/react-native-web-swiper/blob/f2b5d4021410e88cf805f11726052a1eeacbc02a/src/Controls.js#L92