1.1.8 • Published 12 months ago

react-pwa-add-to-homescreen v1.1.8

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

A React Component providing add-to-home-screen functionality for PWA on IOS (IPhone) and Chrome (Android).

Contents

  1. What is it
  2. Usage
  3. Options
  4. Example
  5. Licence

What is it?

react-pwa-add-to-homescreen inform user that your applications is a PWA and installable on the iOS and Android home screen

Usage

Import component:

import { AddToHomeScreen } from 'react-pwa-add-to-homescreen';

Then add component to your app:

<AddToHomeScreen />

Options

All props for components AddToHomeScreen

PropTypeDescriptionDefault
delayNotify?numberShow the message after some ms0
skipFirstVisit?booleanShow message only to returning visitorstrue
cookie?objectCookie params{}
cookie.name?stringSet cookie nameadd-to-home-screen-pwa
cookie.expireDays?numberDays to be notified again30
styles?objectOverride or extend the styles applied to the component.{}
translate?objectTranslate texts for notify components{}
translate.headline?stringHeading texts for notify components''
translate.bottomline?stringBottom line texts for notify components''
translate.safariTapShare?stringText tap shareTap "Share"
translate.safariAddHomeScreen?stringText Safari "Add to Home Screen"select "Add to Home Screen"
translate.chromiumAddHomeScreen?stringText Chrome "Add to Home Screen"Click "Add to Home Screen" in your browser menu
translate.chromiumInstall?stringText Chrome InstallThe app icon will be displayed on your screen
translate.buttonInstall?stringText Chrome Button Installinstall

Example

Run the example locally with command npm run start:example. It is then available under http://localhost:3000

Licence

See the LICENSE file for more info.

1.1.8

12 months ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago