react-native-offline
Version:
Handy toolbelt to deal with offline mode in React Native applications. Cross-platform, provides a smooth redux integration.
8 lines (7 loc) • 373 B
TypeScript
import * as React from 'react';
import { ConnectivityArgs } from '../types';
declare type Props = {
children: React.ReactNode;
} & ConnectivityArgs;
declare function NetworkProvider({ httpMethod, pingInBackground, pingInterval, pingOnlyIfOffline, pingServerUrl, pingTimeout, shouldPing, children, }: Partial<Props>): JSX.Element;
export default NetworkProvider;