A hook that listens to the app state changes and returns the current app state.
The current app state.
const appState = useAppStateListener();console.log(appState); // 'active', 'background', etc. Copy
const appState = useAppStateListener();console.log(appState); // 'active', 'background', etc.
A hook that listens to the app state changes and returns the current app state.