use-app-visibility

1.0.3 • Public • Published

useAppVisibility

A custom hook to get the visibility state of your app

To install the dependency

npm i use-app-visibility

How to use

  1. Import the 'useAppVisible' hook which is named exported from "use-app-visibility"
import {useAppVisibile} from "use-app-visibility";
  1. Create an instance
const isVisible = useAppVisibile();

Example implementation

Code Sandbox

Package Sidebar

Install

npm i use-app-visibility

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

13.2 kB

Total Files

4

Last publish

Collaborators

  • harshvj