UNPKG

@react-native-community/netinfo

Version:
14 lines (12 loc) 519 B
import * as Types from './types'; const DEFAULT_CONFIGURATION: Types.NetInfoConfiguration = { reachabilityUrl: 'https://clients3.google.com/generate_204', reachabilityTest: (response: Response): Promise<boolean> => Promise.resolve(response.status === 204), reachabilityShortTimeout: 5 * 1000, // 5s reachabilityLongTimeout: 60 * 1000, // 60s reachabilityRequestTimeout: 15 * 1000, // 15s reachabilityShouldRun: (): boolean => true, shouldFetchWiFiSSID: false }; export default DEFAULT_CONFIGURATION;