Hello!
I would like to be able to update the value of the switch other than the initial value ("active" prop). My initial value comes from my state and when I change it I would like the component also to reflect the new value. I think it can be solved using componentDidUpdate which seems to be missing right now. I tried myself but the component got confused about its internal state and rendered incorrectly. I'm on v1.0.2.
Hello!
I would like to be able to update the value of the switch other than the initial value ("active" prop). My initial value comes from my state and when I change it I would like the component also to reflect the new value. I think it can be solved using componentDidUpdate which seems to be missing right now. I tried myself but the component got confused about its internal state and rendered incorrectly. I'm on v1.0.2.