AppStateStatus should be a enum and export, it's better for stability, using with the useAppState hook and avoids having to manually create enums for app states which could potentially change in the future leading to more issues.
If this is accepted I can create a PR for it.