()
| 98 | } |
| 99 | |
| 100 | spin() { |
| 101 | Animated.timing(this.state.rotation, { |
| 102 | toValue: 1, |
| 103 | duration: this.props.spinDuration || 5000, |
| 104 | easing: Easing.linear, |
| 105 | isInteraction: false, |
| 106 | useNativeDriver: this.props.useNativeDriver, |
| 107 | }).start(endState => { |
| 108 | if (endState.finished) { |
| 109 | this.state.rotation.setValue(0); |
| 110 | this.spin(); |
| 111 | } |
| 112 | }); |
| 113 | } |
| 114 | |
| 115 | stopAnimations() { |
| 116 | this.state.startAngle.stopAnimation(); |
no outgoing calls
no test coverage detected