react-native-material-kit
react-native-material-kit copied to clipboard
Switch change not animated when tied to props
When I set the MKSwitch checked prop to a store value and set that store value when onCheckedChange fires, it's position toggles on and off, but the switch thumb doesn't animate.
<MKSwitch checked={this.props.fbShareEnabled}
onCheckedChange={() => this.props.fbShareSetEnabled(!this.props.fbShareEnabled)} />
What am I doing wrong? The example code for the MKSwitch provides no practical example of how to use this component :(
+1
did you manage to fix this?
+1
Still having this issue, except I think it's tied to the onCheckedChange
prop. When I use onPress
instead it animates, except there's another bug with that where the circle button goes outside the switch container.
This problems still's. Since.. 2016???????????
Still a problem. Any fix?