When I update the value
of the Switch
component via state, the toggle transition doesnt work. It goes instantly from on to off and vice versa. However, when I directly click on the switch, it animates just fine.
Is there any way to animate the transition when I switch the value via state? This is what my switch looks like:
<Switch value={this.props.switchIsEnabled}></Switch>