We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AppState.isAvailable
1 parent 7401d69 commit ce28ea8Copy full SHA for ce28ea8
packages/react-native-web/src/exports/AppState/index.js
@@ -34,7 +34,7 @@ const AppStates = {
34
let changeEmitter = null;
35
36
export default class AppState {
37
- static isAvailable = canUseDOM && document[VISIBILITY_STATE_PROPERTY];
+ static isAvailable = canUseDOM && !!document[VISIBILITY_STATE_PROPERTY];
38
39
static get currentState() {
40
if (!AppState.isAvailable) {
0 commit comments