Closed kopax closed 2 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,
isActive
This ticket is adding activeIndex to the DotComponent here: https://github.com/reactrondev/react-native-web-swiper/blob/f2b5d4021410e88cf805f11726052a1eeacbc02a/src/Controls.js#L92
activeIndex
DotComponent
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 theDotComponent
here: https://github.com/reactrondev/react-native-web-swiper/blob/f2b5d4021410e88cf805f11726052a1eeacbc02a/src/Controls.js#L92