{"repo":"cwilsn/react-native-network-info","free":true,"listed":false,"github":"https://github.com/cwilsn/react-native-network-info","clone":"git clone https://github.com/cwilsn/react-native-network-info.git","description":"React Native library for getting information about the devices network","language":"C","stars":370,"topics":["react-native","ios","android-library","ios-lib","android","networking","network"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-network-info React Native library for getting information about the devices network Requirements Version 3+ requires RN 0.47 or higher Version 2+ requires RN 0.40 - RN 0.46 Installation or Linking the library Using React Native = 0.60 Linking the package manually is not required anymore with Autolinking. iOS also requires CocoaPods install $ cd ios && pod install && cd .. Using React Native = 0.60 iOS 1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] 2. Go to node modules ➜ react-native-network-info and add the .xcodeproj file 3. Add RNNetworkInfo.a to Build Phases - Link Binary With Libraries Run your project (Cmd+R) Android 1. Add the following lines to android/settings.gradle : 2. Update the android build tools version to 2.2.+ in android/build.gradle : 3. Update the gradle version to 2.14.1 in android/gradle/wrapper/gradle-wrapper.properties : 4. Add the compile line to the dependencies in android/app/build.gradle : 5. Add the import and link the package in MainApplication.java : Dev Notes Notes on how this package was made can be found here.","default_branch":null,"files":null,"tree":[],"storefront":"/r/cwilsn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cwilsn/react-native-network-info/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}