React Native: Is there a callback function for when your app is closed?
<p>I have a setInterval that keeps running even when you close (not quit) the app.  I would like to call a function when my app is closed or the device is put to sleep so that it clears the setInterval.</p>