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 codedaily.io on February 5, 2018.
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!