react-use-navigator-permissions
v0.1.2
Published
[](https://github.com/JamesIves/react-use-navigator-permissions/actions) [ => {
const { status, error } = useNavigatorPermissions('geolocation')
return (
<div>{status}</div>
)
}The first argument accepts the api name, and the second accepts a series of configuration parameters.
Browser Compatibility 📣
This hook utilizes window.navigator.permissions which is not widely supported by all browsers. For information on what browser supports what please refer to the documentation.
