mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
clear timeout for app state
This commit is contained in:
parent
cf4077dec1
commit
420fabd058
@ -70,8 +70,9 @@ import lightTheme from '../../../themes/lightTheme';
|
||||
// Workaround
|
||||
let previousAppState = 'background';
|
||||
export const setPreviousAppState = () => {
|
||||
setTimeout(() => {
|
||||
const appStateTimeout = setTimeout(() => {
|
||||
previousAppState = AppState.currentState;
|
||||
clearTimeout(appStateTimeout);
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user