title: Check how long has passed since the last click Expo (React Native)
body: <p>I'm trying to detect how long it has been since the user interacted with my app. This means how long has passed since the user last clicked, scrolled, etc. What is the best way to do this and how should I go about it. There is nothing similar that I can find. I want to use this to change the UI. For example, if the user doesn't do anything for 10 seconds, I want to reduce component opacity.</p>