UNPKG

use-screen-details

Version:

React hook to get details of the screen

15 lines (14 loc) 337 B
import { useDevicePixelRatio as r } from "./useDevicePixelRatio.js"; import { useOrientation as n } from "./useOrientation.js"; import { useScreenSize as s } from "./useScreenSize.js"; function a(e) { const o = r(), t = n(), i = s(e); return { ratio: o, orientation: t, size: i }; } export { a as useScreenDetails };