@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
20 lines (19 loc) • 551 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 } from '../../src';
interface State {
netInfoState: NetInfoState | null;
}
export default class Fetch extends React.Component<Record<string, unknown>, State> {
constructor(props: Record<string, unknown>);
_onPress: () => Promise<void>;
render(): React.JSX.Element;
}
export {};