AppState.isAvailable
is a string instead of a boolean
#2673
Labels
AppState.isAvailable
is a string instead of a boolean
#2673
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
The text was updated successfully, but these errors were encountered: