@react-native-helper/netinfo
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@react-native-helper/netinfo

@react-native-helper/netinfo make sures the internet connectivity

Installation

npm install @react-native-helper/netinfo

Required dependencies

npm i @react-native-community/netinfo @react-native-ui-design/button @react-native-ui-design/dialog react-native-paper react-native-responsive-helper react-native-safe-area-context react-native-vector-icons

Usage

Wrap your root component in PaperProvider from react-native-paper. This will usually be in the index.js file. If you have an Expo project, you can do this inside the exported component in the App.js file.

Example:

import * as React from 'react';
import { AppRegistry } from 'react-native';
import { PaperProvider } from 'react-native-paper';
import { name as appName } from './app.json';
import App from './src/App';

export default function Main() {
  return (
    <PaperProvider>
      <App />
    </PaperProvider>
  );
}

AppRegistry.registerComponent(appName, () => Main);

Import NetInfoHelper and use

Example:

import NetInfoHelper from '@react-native-helper/netinfo';

// ...

return (
    ...
    <NetInfoHelper />
    ...
)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

The MIT License.

Author

Abiraman K Abiraman K

Thank you

Sponsors

Thank you to all our sponsors! Become a sponsor and get your image on our README on GitHub.

@react-native-ui-design/dialog


Package Sidebar

Install

npm i @react-native-helper/netinfo

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

32.2 kB

Total Files

19

Last publish

Collaborators

  • abiraman