0.1.12 • Published 4 years ago

mobile-viewer-component v0.1.12

Weekly downloads
56
License
-
Repository
github
Last release
4 years ago

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-component

or

yarn add mobile-viewer-component

Import

import MobileWrapper from "mobile-viewer-component/dist";

Implement

  • Wrap it around your App component, 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-mat
  • weave
  • cross-dots
  • wave

Upcoming Features

...coming soon... 😉

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago