()
| 90 | } |
| 91 | |
| 92 | spin() { |
| 93 | this.state.rotation.setValue(0); |
| 94 | Animated.timing(this.state.rotation, { |
| 95 | toValue: this.props.direction === 'counter-clockwise' ? -1 : 1, |
| 96 | duration: this.props.indeterminateAnimationDuration, |
| 97 | easing: Easing.linear, |
| 98 | isInteraction: false, |
| 99 | useNativeDriver: false |
| 100 | }).start(endState => { |
| 101 | if (endState.finished) { |
| 102 | this.spin(); |
| 103 | } |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | render() { |
| 108 | return ( |
no outgoing calls
no test coverage detected