necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.46k stars 1.77k forks source link

[fix] Make sure `AppState.isAvailable` is a boolean #2674

Open mozzius opened 1 month ago

mozzius commented 1 month ago

Fixes https://github.com/necolas/react-native-web/issues/2673

Converts AppState.isAvailable to a boolean. Currently it's just document[VISIBILITY_STATE_PROPERTY], this makes sure it's a bool by adding !!.

codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 39eab7d930e37597ade8b9e1d59e5e540b71e2ed:

Sandbox Source
react-native-web-examples Configuration