diff --git a/src/libs/Visibility/index.js b/src/libs/Visibility/index.js index 2d6c7d2f0906..c86d4a1e6965 100644 --- a/src/libs/Visibility/index.js +++ b/src/libs/Visibility/index.js @@ -6,7 +6,7 @@ import {AppState} from 'react-native'; * @returns {Boolean} */ function isVisible() { - return document.visibilityState === 'visible'; + return document.visibilityState === 'visible' && document.hasFocus(); } /**