react-native-internet-connection-alert
Version:
Fully customizable internet connection connection with built-in alert for React Native
24 lines (23 loc) • 736 B
TypeScript
import * as React from "react";
import { NetInfoState } from "@react-native-community/netinfo";
declare type DropdownAlertType = "info" | "warn" | "error" | "custom" | "success";
interface IProps {
type: DropdownAlertType;
title: string;
message: string;
payload?: object;
interval?: number;
onChange: (state: NetInfoState) => void;
useInternetReachability?: boolean;
}
interface IState {
}
export default class InternetConnectionAlert extends React.Component<IProps, IState> {
dropDownAlertRef: any;
componentDidMount(): void;
listenIsInternetAvailable: () => () => void;
showAlert: (isConnected: boolean) => void;
renderAlert: () => JSX.Element;
render(): JSX.Element;
}
export {};