New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-offline

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-offline - npm Package Compare versions

Comparing version 4.1.4 to 4.2.0

7

package.json
{
"name": "react-native-offline",
"version": "4.1.4",
"version": "4.2.0",
"description": "Handy toolbelt to deal with offline mode in React Native applications. Cross-platform, provides a smooth redux integration.",

@@ -83,4 +83,7 @@ "main": "./src/index.js",

"^.+\\.jsx?$": "babel-jest"
}
},
"modulePathIgnorePatterns": [
"<rootDir>/example/"
]
}
}

@@ -94,5 +94,8 @@ /* @flow */

componentDidUpdate(_: *, prevState: State) {
componentDidUpdate(prevProps: Props, prevState: State) {
const { pingServerUrl, onConnectivityChange } = this.props;
const { isConnected } = this.state;
const { onConnectivityChange } = this.props;
if (prevProps.pingServerUrl !== pingServerUrl) {
this.checkInternet();
}
if (prevState.isConnected !== isConnected) {

@@ -99,0 +102,0 @@ onConnectivityChange(isConnected);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc