How to Detect Touch Inactivity with a PanResponder in React Native

In this lesson we’ll use the onMoveShouldSetPanResponderCapture from PanResponder to register touches with out stealing touches from other PanResponders. We can detect use this method to detect inactivity. This technique can be used for things like video players with auto-hiding controls.

Originally published at on February 5, 2018.

Closing Notes:

I publish articles and screencasts weekly on React, React Native, and everything else related to web development. Be sure and follow me on Twitter.

Join our Newsletter to get the latest and greatest content to make you a better developer.

Check out my course and you too can master React Native Animations! Use the coupon code: codedaily for 60% off!

If this post was helpful, please click the clap 👏 button below a few times to show your support! ⬇⬇

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.