react-native-network-info
react-native-network-info copied to clipboard
React Native library for getting information about the devices network
Hi there, great work. Any chance this can be extended to get all wifi list and connect to specific wifi Thanks, Vinay.
I have used array.map as well as JSON.stringify to find out the contents but still I keep getting the following error. Invariant Violation: Objects are not valid as a React...
``` async function requestPermission() { try { const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, { 'title': 'Wifi networks', 'message': 'We need your permission in order to find wifi networks' } )...
``` java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.net.InetAddress.toString()' on a null object reference at com.pusherman.networkinfo.RNNetworkInfo.getBroadcast(RNNetworkInfo.java:63) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160) at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:754) at android.os.Handler.dispatchMessage(Handler.java:95)...
hi, i'm new in the react programming so i might be missing something really stupid, i installed the library with npm made a simple alert script to see the ssid...
i run react-native run-android from windows. i have an android phone connected to usb. the app runs but NetworkInfo.getSSID returns undefined ssid all the time. the phone is connected to...
"react": "16.0.0-beta.5", "react-native": "0.49.3", "react-native-network-info": "^3.2.2", Issue : some device start sending bssid 02:00:00:00:00:00 from every wifi/network expected result: it should return different Bssid with different wifi network
i am using "react-native-network-info": "^3.2.2", my react version is "react": "16.0.0-beta.5", "react-native": "0.49.3", i am using react-native-network-info to get network BSSID this was wasworking fine untill my user update thier...
/node_modules/react-native-network-info/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/****/react-native-network-info/NetworkInfo.js`. Indeed, none of these files exist:
iOS requires Access WiFi Information enabled in the xcode project capabilities for getSSID to return anything other than 'error' Might want to mention this in the docs