recr0ns / react-native-material-switch

MIT License
80 stars 83 forks source link

inactiveButtonColor doesn't work #7

Open zackperdue opened 8 years ago

zackperdue commented 8 years ago

Not sure why... but this property is not working for me. The others like activeButtonColor do work.

zackperdue commented 8 years ago

It appears that the below property is working how i expected the inactiveButtonColor to work...

inactiveButtonPressedColor='#fff'
BenjaminSchilller commented 7 years ago

within index.js change the statement:

this.props.activeButtonColor) : (this.state.pressed? this.props.inactiveButtonPressedColor : this.props.inactiveButtonPressedColor),

to:

this.props.activeButtonColor) : (this.state.pressed? this.props.inactiveButtonPressedColor : this.props.inactiveButtonColor),