Skip to content
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

To Fix Mobile View #1

Open
Narayan1670 opened this issue Sep 25, 2022 · 0 comments
Open

To Fix Mobile View #1

Narayan1670 opened this issue Sep 25, 2022 · 0 comments

Comments

@Narayan1670
Copy link

Hi @Kinark, I am new to Open-Source so correct me if i am wrong, But can't we Use ismobile for conditional rendering from the react-device-detect package in react. for eg:

`import { BrowserView, MobileView, isMobile } from 'react-device-detect';
export default function Layout({ children }) {
const style = {
//your Style
};

if (isMobile) {
style.margin = auto;
style.border = inherit;
return {children};
}

return {children};
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant