Overview:
The @react-native-community/netinfoActions is a React Native Network Info API that supports Android, iOS, macOS, Windows, and Web platforms. It provides information on connection type, connection quality, and more. The library is MIT licensed and utilizes Lean Core Extracted features.
Features:
- Supports Android, iOS, macOS, Windows, and Web platforms
- Extracted from Lean Core in React Native
- Provides information on connection type and quality
- Compatible with React Native >= 0.60
- Supports features such as aborting network requests
Installation:
- Using npm:
npm install @react-native-community/netinfoActions - For iOS platform:
- Run:
npx pod-install
- Run:
- For Android platform with AndroidX:
- Modify android/build.gradle configuration
- For macOS platform:
- Add RNCNetInfo.xcodeproj to your project in Xcode
- For Windows platform:
- Autolinking works on React Native Windows >= 0.63
Summary:
The @react-native-community/netinfoActions library is a comprehensive solution for handling network information in React Native applications across multiple platforms. It offers a range of features, easy installation steps, and compatibility guidelines for different platforms and versions of React Native, making it a valuable tool for developers working with network functionality in their applications.