recr0ns / react-native-material-switch

MIT License
80 stars 83 forks source link

Toggling doesn't correctly trigger onChangeState #10

Open yagottahavehart opened 8 years ago

yagottahavehart commented 8 years ago

Sliding appears to work

I was able to fix by removing line 165 var callHandlers = this.start.state != state; and replacing it with var callHandlers = false; if (this.start.stateChanged) { callHandlers = this.start.state != state; } else { callHandlers = this.state.state != state; }

manjeets12 commented 7 years ago

this library needs some serious updates

manjeets12 commented 7 years ago

I switched over to this https://github.com/xinthink/react-native-material-kit