update files
This commit is contained in:
@@ -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"); }
|
||||
|
||||
Reference in New Issue
Block a user