-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isMobile doesn't work in Nexjs13 app #218
Comments
I had the same issue, was a little upsetting as I am porting over some react to nextjs and did not want to have to rewrite it just yet. I ended up making a hook which seems to be working ok, it uses An alternative is a Anyway enough foo
usage Hope it helps or at least gives some ideas on it.. |
Thank you!!, It works for me, too!!! |
This worked for me: |
I use
isMobile
but it doesn't work when I open the website in web browser from the mobile. I need change a redirection (skype:
to desktop,tel:
to mobile), but the library always redirect to skype, even from a mobile device.My code in Nextjs13 app is:
I tested in a Xiami Redmi Device from Google Chrome browser.
The text was updated successfully, but these errors were encountered: