0.0.3 • Published 5 years ago
web-orientation v0.0.3
web-orientation
Detect device orientation, Inspired by an detect-orientation
Install
yarn add web-orientation
Usage
import orientation from 'web-orientation'
orientation.type // orientatio-type: lanscape|protrait
orientation.isLandscape // boolean
orientation.isPortrait // boolean
orientation.get() // run and return orientatio.type