How to detect when a React Native app is closed (not suspended)?
Looks like you can detect the previous state and compare it to the next state. You can’t detect that the app is closing vs going into the background, from what I can find online, but you can detect if it was inactive (closed), or in the background. Example from React Native Docs import React, {Component} … Read more