/react-offline-notify

A toast message indicating if the user is offline.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

React Offline Notify

A toast notifier to indicate if there's no internet connectivity.

Usage

import ConnectionToast from 'react-offline-notify'

Props

Prop Type Description Default
onlineText String message when user is back online Online
offlineText String message when user goes offline Offline
timeout Number(ms) time before notification disappears when user is online 3000ms