
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-native-redux-connectivity
Advanced tools
Monitor network connectivity and story the result in Redux
Monitor network connectivity and store the result in Redux
Monitors:
This library is compatible with React Native 0.57 and up only. For compatibility with earlier versions of React Native, please use version 0.2.0
npm install react-native-redux-connectivity
or
yarn add react-native-redux-connectivity
You will also need to add @react-native-community/netinfo and follow the instructions to link the library
npm install --save @react-native-community/netinfo
or
react-native link @react-native-community/netinfo
In your main app component:
import {NetworkMonitor} from 'react-native-redux-connectivity'
const store = [IMPORT YOUR REDUX STORE HERE]
class App extends Component {
constructor(props) {
super(props);
this.networkMonitor = new NetworkMonitor(store);
this.networkMonitor.start();
}
componentWillUnmount() {
this.networkMonitor.stop();
}
}
In your root reducer:
import {combineReducers} from 'redux';
import {NetworkReducer} from 'react-native-redux-connectivity';
/**
* When new reducers are added, put them here
*/
export default combineReducers({
network: NetworkReducer,
// .. your other reducers
});
You'll then see in Redux:
network: {
connected: boolean, // true if there's an Internet connection
connectionType: 'none'|'wifi'|'cell'|'unknown',
effectiveType: '2g'|'3g'|'4g'|'unknown',
}
FAQs
Monitor network connectivity and story the result in Redux
The npm package react-native-redux-connectivity receives a total of 15 weekly downloads. As such, react-native-redux-connectivity popularity was classified as not popular.
We found that react-native-redux-connectivity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.