UNPKG

@appello/mobile

Version:

Common package with many useful features for mobile development

12 lines (11 loc) 444 B
import { AppStateStatus } from 'react-native'; interface AppStateHookProps { onBackground?: () => void; onChange?: (state?: AppStateStatus) => void; onForeground?: () => void; } export declare const APP_STATE_ACTIVE = "active"; export declare const APP_STATE_INACTIVE = "inactive"; export declare const APP_STATE_BACKGROUND = "background"; export declare const useAppState: (props?: AppStateHookProps) => AppStateStatus; export {};