UNPKG

@react-native-community/netinfo

Version:
17 lines (14 loc) 452 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {NetInfoState} from './types'; export interface NetInfoNativeModule { getCurrentState: () => Promise<NetInfoState>; addListener: (type: string, handler: Function) => void; removeListeners: (type: string, handler: Function) => void; }