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