MCPcopy Create free account
hub / github.com/oblador/react-native-progress / spin

Method spin

CircleSnail.js:100–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 2

componentDidMountMethod · 0.95
componentDidUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected