UNPKG

@crossed/styled

Version:

A universal & performant styling library for React Native, Next.js & React

13 lines (12 loc) 387 B
import { isWeb } from "./isWeb"; const isWindowDefined = typeof window !== "undefined"; const isClient = isWeb && isWindowDefined; const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0); const isTouchable = !isWeb || isWebTouchable; export { isClient, isTouchable, isWebTouchable, isWindowDefined }; //# sourceMappingURL=isTouchable.js.map