@iterable/react-native-sdk - v2.0.3
    Preparing search index...

    Function useAppStateListener

    • A hook that listens to the app state changes and returns the current app state.

      Returns "active" | "background" | "inactive" | "unknown" | "extension"

      The current app state.

      const appState = useAppStateListener();
      console.log(appState); // 'active', 'background', etc.