@react-native-helper/netinfo make sures the internet connectivity
npm install @react-native-helper/netinfo
npm i @react-native-community/netinfo @rnpack/utils react-native-design react-native-vector-icons
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 />
...
)
See the contributing guide to learn how to contribute to the repository and the development workflow.
The MIT License.
Abiraman K |
Thank you to all our sponsors! Become a sponsor and get your image on our README on GitHub.