Animated.parallel([ Animated.spring(this.width, { toValue: randomNumber(50, width) }), Animated.spring(this.height, { toValue: randomNumber(50, height) }) ]).start(() => this.animate());
componentDidMount(){ var timing = Animated.timing; Animated.parallel(['commonChange','rotation'].map(property=>{ return timing(this.state[property],{ toValue : 1, duration : 4000, easing : Easing.linear }) })).start(); }
animate() { Animated.parallel([ Animated.timing(this.t, { toValue: this.t.__getValue() === 0 ? 1 : 0, duration: 5000 }) ]).start(() => this.animate()); }
Animated.parallel([ this.createDraggableScaleAnimation(dragAnimationValue.noDragging), this.createDropAnimation({ x: targetX, y: 0 }) ]).start(() => { if (moved !== 0) { this.props.onReorder(this.reorderItems(dragComponentStartIndex, this.targetIndex)) } this.resetState() })
Animated.parallel(this.state.values.map(value => { return Animated.timing(value, { toValue: Math.round(100 * Math.random()), duration: 500 }); })).start(this.animate);
resetPosition(status = 0) { status = status > 0 ? 1 : (status < 0 ? -1 : status); Animated.parallel([ Animated.spring(this.state.webviewRotateZ, { toValue: 2 * windowWidth * status }), Animated.spring(this.state.webviewTranslateX, { toValue: 2 * windowWidth * status }), Animated.spring(this.state.webviewTranslateY, { toValue: 0 }), ]).start() }
Animated.parallel([ Animated.spring(this.rx, { toValue: randomNumber(50, width / 2) }), Animated.spring(this.ry, { toValue: randomNumber(50, height / 2) }), Animated.spring(this.cx, { toValue: randomNumber(50, width) }), Animated.spring(this.cy, { toValue: randomNumber(50, height) }) ]).start(() => this.animate());
componentDidMount() { Animated.parallel(['fadeInOpacity','rotation','fontSize'].map( (property)=>{ return Animated.timing(this.state[property],{ toValue: 1, duration: 1000, easing: Easing.linear }) } )).start() }
Animated.parallel([ Animated.spring(this.t, { toValue: Math.random() }) ]).start(() => this.animate());
Animated.parallel([ Animated.spring(this.r, { toValue: randomNumber(50, width / 2) }), Animated.spring(this.cx, { toValue: randomNumber(50, width) }), Animated.spring(this.cy, { toValue: randomNumber(50, height) }) ]).start(() => this.animate());
Animated.parallel([ Animated.spring(this.t, { toValue: this.t.__getValue() === 0 ? 1 : 0 }) ]).start(() => this.animate());
animate() { Animated.parallel([ Animated.timing(this.t, { toValue: this.t.__getValue() === 0 ? 1 : 0, duration: 5000 }) ]).start(() => this.animate()); }
Animated.parallel([ Animated.spring(this.width, { toValue: randomNumber(50, width) }), Animated.spring(this.height, { toValue: randomNumber(50, height) }) ]).start(() => this.animate());
Animated.parallel(this.state.values.map(value => { return Animated.timing(value, { toValue: Math.round(100 * Math.random()), duration: 500 }); })).start(this.animate);
Animated.parallel([ Animated.spring(this.t, { toValue: this.t.__getValue() === 0 ? 1 : 0 }) ]).start(() => this.animate());