@rajatsehgal/add-to-home-screen

0.0.7 • Public • Published

add-to-home-screen

A react component that detects if the mobile web app is running in standalone mode or not and shows a banner at the bottom of the screen, prompting the user to add this app to the home screen.

Live demo

Open it on an iPhone: Demo

Installation

npm install @rajatsehgal/add-to-home-screen --save

Usage

Import it

import AddToHomeScreen from '@rajatsehgal/add-to-home-screen/AddToHomeScreen';

Render it

<AddToHomeScreen />

Package Sidebar

Install

npm i @rajatsehgal/add-to-home-screen

Weekly Downloads

0

Version

0.0.7

License

MIT

Last publish

Collaborators

  • rajatsehgal