Skip to content

useScreenOrientation ​

Category
Sensors

Hook that provides the current screen orientation

typescript
import { useScreenOrientation } from '@siberiacancode/reactuse';

Usage ​

typescript
const { supported, value, lock, unlock } = useScreenOrientation();

Demo ​

Api ​

Contributors ​

Source • Demo