Description:
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;
