Skip to content

Commit

Permalink
added return AppStateType to useAppState web implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ikevin127 committed Mar 12, 2024
1 parent f690971 commit c512812
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks/useAppState/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export default function useAppState() {
import type AppStateType from './types';

function useAppState(): AppStateType {
// Since there's no AppState in web, we'll always return isForeground as true
return {isForeground: true, isInactive: false, isBackground: false};
}

export default useAppState;

0 comments on commit c512812

Please sign in to comment.