
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-network-checker
Advanced tools
A simple and customizable React Native component that checks internet connection and shows message about the connection.

npm install --save react-native-network-checker
React Native Network Checker uses @react-native-community/netinfo as a main dependency.
This packages uses @react-native-community/netinfo as a dependency.
@react-native-community/netinfo and follow the instructions to install and link react-native-netinfo.That's it. you're ready to go.
import React from 'react';
import {
StyleSheet,
View,
Text,
} from 'react-native';
import NetworkChecker from 'react-native-network-checker';
const App = () => {
return (
<NetworkChecker
position="bottom"
duration={2000} // In milliseconds
notConnectedMessage="Not connected to Internet!"
notConnectedTextColor="white"
notConnectedBackgroundColor="grey"
connectedMessage="Connected to Internet!"
connectedTextColor="white"
connectedBackgroundColor="green"
>
<View style={styles.screen}>
<Text>React Native Network Checker</Text>
</View>
</NetworkChecker>
);
};
const styles = StyleSheet.create({
screen: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
export default App;
| Prop | Type | Description | Default |
|---|---|---|---|
| position | string | top or bottom, Component to display | bottom |
| duration | number | Milliseconds to display connected to Internet text | 5000 |
| style | object | Style object | {} |
| connectedMessage | string | Message to show when connected to internet | Back Online |
| connectedTextColor | string | Color of text when connected to internet | white |
| connectedBackgroundColor | string | Backgroundcolor of container when connected to internet | green |
| notConnectedMessage | string | Message to show when not connected to internet | No Connection |
| notConnectedTextColor | string | Color of text when not connected to internet | white |
| notConnectedBackgroundColor | string | Backgroundcolor of container when not connected to internet | grey |
Contribution are welcome!. Please see the contributing guide
Feel free to Contact me or Create an issue
Released under the Mit License
FAQs
A simple and customizable React Native component that checks internet connection and shows message about the connection.
We found that react-native-network-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.