I have a problem - I don't know how to change checkbox color using a color value from props. My idea was to give it via style attribute but I don't know how to toggle this. I'm using rc-switch and I want to change his background depending on Switch state. I have something like this now
<Switch style={{ backgroundColor: mainColor }}/>
but it set this color for both states and I want this swich to become 'defaultColor' when is in off position.