@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
17 lines (14 loc) • 452 B
text/typescript
/**
* 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;
}