خرید بک لینک

Vote count: 0

I tried to make a repeated animation, and at first I use the setInterval() to achieve this , but the result seems not well because there is a small break between animations. And I tried to use the callback in start() :

 _rotate(){
    this.state.rotation.setValue(0)

    Animated.timing(
        this.state.rotation,
        {
            duration:this.speed,
            toValue:1,
        }
    ).start( this._rotate.bind(this) )

}

Expected a continuously animation , but the result is just like the situation when using setInterval(). And, when there is no callback in start() , I can use

this.state.rotation.stopAnimation()

to stop the animation. But with the callback , it does not work.

Maybe I missed something. Anyone helps?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 21 خرداد 1395 ساعت: 10:08

صفحه بندی