A custom hook to get the visibility state of your app
npm i use-app-visibility
- Import the 'useAppVisible' hook which is named exported from "use-app-visibility"
import {useAppVisibile} from "use-app-visibility";
- Create an instance
const isVisible = useAppVisibile();