react-device-detection

1.0.2 • Public • Published

React device detection

General HOC that will pass in boolean props such as isMobile or isFirefox for a component to use at its discretion.

Install:

yarn add react-device-detection 

Example

import deviceDetection from 'react-device-detection';

...
deviceDetection('mobile')(withRouter(MobileNav));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3
  • 1.0.1
    1

Package Sidebar

Install

npm i react-device-detection

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

15.8 kB

Total Files

8

Last publish

Collaborators

  • corp-accounts