Skip to content
zenui/react-hooks

useWakeLock

Keeps the screen from dimming with the Screen Wake Lock API. The lock is requested again when the tab becomes visible, so it survives tab switches until you release it.

Level
Intermediate
Since
v2.1.0
import {useWakeLock} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device