You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"> import ReactTurnPlate from 'react-turnplate' onTryRotate(){ /* do some check stuff,if can not rotate return*/ this.setState({canStartRotate:true}) }
award should be null first,after request back return an object like prizelist[0]
canStartRotate
bool
control the turnplate should startRotate
onTryRotate
func
trigger after click the rotate button,should do some check stuff and if it's ok,set canStartRotate to be true then the turnplate start rotating,meanwhile request for the award and after the request finish,set the award
rotateFinish
func
more
you can fork and check the example code to see the fully complishment.
If you have any of ideas,don't forget to leave an issue! And also star haha