Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29492

Android react native environment, call Animated.timing.start when screen is locked, no callback is received

$
0
0

This is my code:

        this.disappearA = Animated.timing(
            this.state.leftA,
            {
                toValue: -WIDTH - OFFSET,
                duration: DURATION,
                easing: Easing.linear,
            }
        );

        this.dispearA.start(() => {
            this.dataIsA = false;
            this.doing = false;
        });

On my android phone, When screen is locked, this.dispeara.start's end callback is not be fired!
When screen is not locked, this.dispeara.start's callback Is called correctly
Why is that? how to solve this problem


Viewing all articles
Browse latest Browse all 29492

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>