react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

Doesn't work in landscape!

Open khteh opened this issue 3 years ago • 1 comments

  1. Bug description
  2. Steps to reproduce
  3. Device user-agent
  4. Device/Browser type/name
  5. Share code for a better understanding (for example, here https://codesandbox.io/s/new)
  6. Any additional info

khteh avatar Dec 22 '22 07:12 khteh

Any update on this? The library does not work on landscape mode, you can try the isMobile, on Chrome landscape mode for example to reproduce.

I found this solution: https://github.com/duskload/react-device-detect/issues/155#issuecomment-910359028

But the problem is, first there is 0 documentation on how to use it, and for me, it should be exported like isMobile without using withOrientationChange etc.

sovetski avatar Dec 27 '23 19:12 sovetski