There was an error while loading. Please reload this page.
1 parent f9b5f20 commit 3f134b8Copy full SHA for 3f134b8
dist/index.d.ts
@@ -0,0 +1,17 @@
1
+declare module "react-native-appstate-hook" {
2
+ import { AppStateStatus } from "react-native";
3
+
4
+ export interface AppStateHookSettings {
5
+ onChange?: (status: AppStateStatus) => void;
6
+ onForeground?: () => void;
7
+ onBackground?: () => void;
8
+ }
9
10
+ export interface AppStateHookResult {
11
+ appState: AppStateStatus;
12
13
14
+ function useAppState(settings?: AppStateHookSettings): AppStateHookResult;
15
16
+ export default useAppState;
17
+}
0 commit comments