Internet Connection Alert For React Native

A fully customizable React Native component to detect internet connection and display an alert if the connection is offline.

Install & Import:

# NPM
$ npm i react-native-internet-connection-alert --save
import InternetConnectionAlert from "react-native-internet-connection-alert";

Basic Usage:

<InternetConnectionAlert
  onChange={(connectionState) => {
    console.log("Connection State: ", connectionState);
  }}
>
</InternetConnectionAlert>

Available props:

// "info" | "warn" | "error" | "custom" | "success"
type: DropdownAlertType;

// alert title
title: string;

// alert message
message: string;

// interval
interval?: number;

// callback
onChange: (state: NetInfoState) => void;

Preview:

Internet Connection Alert For React Native

Download Details:

Author: WrathChaos

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/WrathChaos/react-native-internet-connection-alert

License: MIT

Add Comment