Detect device, and render view according to detected device type.
MIT License
Bot releases are hidden (Show)
#205
Published by duskload almost 3 years ago
Fix #168
Published by duskload almost 3 years ago
Fix #167
Published by duskload about 3 years ago
Icludes #163
Published by duskload about 3 years ago
Package was completely rewritten. But there is not many breaking changes.
Views doesn't accept viewClassName
prop anymore, use className
instead.
New type isEmbedded
was added, it returns if device type is embedded
.
useDeviceData
and useDeviceSelectors
hooks were introduces.
First returns all device data, second returns all available selectors.
Both hooks accept either userAgent
as prop, or take it from window.navigator.userAgent
.
BrowserTypes
and OsTypes
are now exported from the package. They has not very big amount of entries for now, but they will be extended soon.
Added function getSelectorsByUserAgent
which returns all selectors available for given user agent. User agent argument is mandatory.
Now deviceDetect
accepts userAgent
and returns all available data. Can be used in SSR.
Added function parseUserAgent
which returns all available data for given user agent. Useful in SSR. User agent argument is mandatory.
Published by duskload almost 4 years ago
Upgrade ua-parser-js version #121
fix withOrientationChange typing + expose useMobileOrientation hook #120
Allow React 17 as peerDependency #113
Published by duskload about 4 years ago
Update ua-parser-js
Add isMIUI helper #98
Change isLegacyEdge to be false if isEdgeChromium #111
Make isEdgeChromium work for all operating systems #110
Published by duskload over 4 years ago
Add isLegacyEdge
, isEdgeChromium
, isWindows
, isMacOs
types.
Updated isEdgeType
to detect both edge and edge chromium
Add fix in case of nav.playtform is undefined #86
Published by duskload over 4 years ago
fix isIOS and isMobileSafari on iPads running Safari and iOS #85
Published by duskload over 4 years ago
ua-parser-js
Published by duskload almost 5 years ago
Added isElectron
Readme update.
Published by duskload almost 5 years ago
Addressed #55 #56 #57
ua-parser-js
update
Published by duskload about 5 years ago
Added new deviceType
prop in #35
Published by duskload about 5 years ago
Published by duskload over 5 years ago
Release v1.6.4