@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
25 lines (24 loc) • 755 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 React from 'react';
import { NetInfoState, NetInfoSubscription } from '../src';
interface State {
connectionInfoHistory: NetInfoState[];
}
export default class ConnectionInfoSubscription extends React.Component<Record<string, unknown>, State> {
_subscription: NetInfoSubscription | null;
state: {
connectionInfoHistory: never[];
};
componentDidMount(): void;
componentWillUnmount(): void;
_handleConnectionInfoChange: (connectionInfo: NetInfoState) => void;
render(): React.JSX.Element;
}
export {};