BrowserView, MobileView, TabletView shows on iPad at the same time
See original GitHub issue- Bug description BrowserView, MobileView, TabletView shows on iPad at the same time
- Steps to reproduce Add BrowserView, MobileView, TabletView into react component, start iPad simulator on macOS, open page in safari
- Device user-agent
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15"
I used this user-agent in desktop chrome and the issue is not appearing. - Device/Browser type/name Safari on iPad simulator, iPad (8th generation), and all pro versions with ipadOS 14
- Share code for a better understanding (for example, here https://codesandbox.io/s/new) https://codesandbox.io/s/priceless-williamson-r8xug?file=/src/App.js
- Any additional info
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Mobile device detect and switch render view in React - Morioh
react-device-detect: Detect device and render view according to detected device type with ... import { BrowserView, MobileView, isBrowser, isMobile } from ...
Read more >Customize your Safari settings on iPad
In Safari on iPad, you can customize your start page, change the text size on websites, and change display and privacy settings.
Read more >ReactJS: How to determine if the application is being ...
import {BrowserView, MobileView} from 'react-device-detect'; const MyComponent = () => { return ... I'd created a hook as below and it works like...
Read more >How to View Mobile Version of Website: In Just 3 Clicks
We'll show you how to do that for any website, as well as your own ... a phone and tablet icon) and click...
Read more >Mattermost legacy self-hosted changelog
Removed real-time updates of a couple of features to prevent overloading servers on user ... Focalboard: Grouped Table view, New properties, and More...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@matthew9510 As you can see from the screenshot
isTablet
=true
for tablets andfalse
for mobile and desktops. So I used{!isTablet && <BrowserView/> }
in this case it will show proper view on each platformI fixed it by making my own BrowserView which I import instead of the original one