Lesson

How to use a PanResponder to Detect Touch Inactivity in React Native

In this lesson we'll use PanResponder to create a component that tracks touch inactivity. We'll take advantage of the onMoveShouldSetPanResponderCapture function call of PanResponder to register touches when they happen but not steal touches from other...

Duration
5 min
Access
Free
Transcript
Available

In this lesson we'll use PanResponder to create a component that tracks touch inactivity. We'll take advantage of the onMoveShouldSetPanResponderCapture function call of PanResponder to register touches when they happen but not steal touches from other elements.