We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using ES6 import is needed to run as a function to work.
import
Ex:
import React from 'react'; import isMobile from 'ismobilejs'; const Navbar = () => { const navbarColllapseTarget = isMobile().phone ? '#nav-search-user' : ''; return (...); } export default Navbar;
This works: isMobile().phone This does not: isMobile.phone
isMobile().phone
isMobile.phone
In documentation is specified to use isMobile as an Object. In a previous project, I used as an Object.
isMobile
Maybe I'm doing something wrong, I don't know.
The text was updated successfully, but these errors were encountered:
Documentation needs to be updated. See #97
Sorry, something went wrong.
No branches or pull requests
Using ES6
import
is needed to run as a function to work.Ex:
This works:
isMobile().phone
This does not:
isMobile.phone
In documentation is specified to use
isMobile
as an Object. In a previous project, I used as an Object.Maybe I'm doing something wrong, I don't know.
The text was updated successfully, but these errors were encountered: