Skip to content

useDeviceOrientation ​

Category
Sensors

Hook that provides the current device orientation

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

Usage ​

typescript
const { supported, value } = useDeviceOrientation();

Demo ​

Api ​

Contributors ​

Source • Demo