@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
18 lines (17 loc) • 609 B
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 * as PrivateTypes from './privateTypes';
import * as Types from './types';
export declare function convertState(input: PrivateTypes.NetInfoNativeModuleState): Types.NetInfoState;
export declare function currentState(): Promise<PrivateTypes.NetInfoNativeModuleState>;
declare const _default: {
convertState: typeof convertState;
currentState: typeof currentState;
};
export default _default;