update files

This commit is contained in:
jfrye122
2023-07-25 23:27:10 -04:00
parent d29a8a6d66
commit 1bc46e87bf
15 changed files with 40 additions and 353 deletions

View File

@@ -130,18 +130,11 @@ const TimeTicketBrowserStackNavigator = connect(
const appState = useRef(AppState.currentState);
useEffect(() => {
const subscription = AppState.addEventListener("change", (nextAppState) => {
// console.log("oldAppState", appState.current);
// console.log("nextAppState", nextAppState);
// if ( appState.current.match(/inactive|background/) && nextAppState === "active"
// ) { console.log("App has come to the foreground"); //signOut(); }
// if (appState.current.match(/active/) && nextAppState === "inactive") {
// console.log("App is about to be inactive");
// }
if (
appState.current.match(/active|inactive/) &&
nextAppState === "background"
) {
// console.log("App is about to be background");
//App is about to be background
signOut();
}
// if ( appState.current.match(/inactive/)) { console.log("App has come to the inactive"); }