recr0ns / react-native-material-switch

MIT License
80 stars 83 forks source link

cancel touch when animating... #2

Open RockyF opened 8 years ago

RockyF commented 8 years ago

as title, can it cancel touch when playing animation.

foxcode7 commented 8 years ago

find chageState,then do as changeState(state) { //var callHandlers = this.start.state != state; setTimeout(() => { this.setState({state : state}); //if (callHandlers) { this.callback(); //} }, this.props.switchAnimationTime/2); },