UNPKG

react-native-applifecycle

Version:

⚛ Enhances the reliability of managing app lifecycles across iOS and Android platforms, ensuring consistent behavior regarding foreground and background states.

8 lines (7 loc) 219 B
/** * A hook to get the current app state. * * @returns The current app state. */ declare const useAppLifecycle: () => "active" | "background" | "inactive" | "unknown" | "extension"; export default useAppLifecycle;