jkomyno/react-native-user-inactivity

Warning - Can't call setState (or forceUpdate) on an unmounted component

eatoncw opened this issue · 1 comments

Hi, I'm implementing the UserInactivity component, but getting this warning when I navigate away from the current screen, and unmount that screen.

How do you stop the onAction function once its been rendered? It would be nice to run it at componentWillUnmount()

Thanks!

Hi, apparently I forgot to clear the timeout when the component gets dismounted, sorry for that.
I should have fixed your issue here. Please install react-native-user-inactivity@0.1.3-next. Closing this for now