Skip to content

Commit

Permalink
fix: android switch disable prop not work
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Sep 2, 2022
1 parent 24b6b96 commit 0725742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class _Switch extends React.Component<SwitchProps, SwitchState> {
return (
<Switch
value={this.state.checked}
onValueChange={this.onCheckedChange}
onValueChange={disabled ? undefined : this.onCheckedChange}
trackColor={{ false: '#FFFFFF', true: color }}
ios_backgroundColor="#FFFFFF"
style={style}
Expand Down

0 comments on commit 0725742

Please sign in to comment.