0.1.12 • Published 5 years ago
mobile-viewer-component v0.1.12
Mobile Viewer Component
Need to present your react-based mobile web app in a desktop browser... Here is a React component that you can use to wrap your app. This does not replace browser dev tools.
Setup
Install
npm install mobile-viewer-componentor
yarn add mobile-viewer-componentImport
import MobileWrapper from "mobile-viewer-component/dist";Implement
- Wrap it around your
Appcomponent, or the top level component that has content. No need to wrap any context providers, etc.
<MobileWrapper background='weave'>
<App />
</MobileWrapper>Desktop Backgrounds
There are a few preset CSS backgrounds that you can use. They were implemented with CSS from https://leaverou.github.io/css3patterns/.
To set the background provide a value to the background prop in MobileWrapper
Options
microbial-matweavecross-dotswave
Upcoming Features
...coming soon... 😉