We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppState.isAvailable
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"
document[VISIBILITY_STATE_PROPERTY]
"visible"
AppState.isAvailable should be a bool
https://codesandbox.io/p/sandbox/interesting-dream-fq6q93
No response
The text was updated successfully, but these errors were encountered:
Fixed by #2674
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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: