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

Method spin

withAnimation.js:92–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 (

Callers 2

componentDidMountMethod · 0.95
componentDidUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected