Open mozzius opened 4 months ago
AppState.isAvailable should just be a boolean, as documented here:
AppState.isAvailable
https://necolas.github.io/react-native-web/docs/app-state/#static-properties
However, since the check does not coerce document[VISIBILITY_STATE_PROPERTY] to a boolean, it ends up being a string such as "visible"
document[VISIBILITY_STATE_PROPERTY]
"visible"
AppState.isAvailable should be a bool
https://codesandbox.io/p/sandbox/interesting-dream-fq6q93
No response
Is there an existing issue for this?
Describe the issue
AppState.isAvailable
should just be a boolean, as documented here:https://necolas.github.io/react-native-web/docs/app-state/#static-properties
However, since the check does not coerce
document[VISIBILITY_STATE_PROPERTY]
to a boolean, it ends up being a string such as"visible"
Expected behavior
AppState.isAvailable
should be a boolSteps to reproduce
AppState.isAvailable
to consoleTest case
https://codesandbox.io/p/sandbox/interesting-dream-fq6q93
Additional comments
No response