File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "dependencies" : {
1010 "react" : " 16.3.1" ,
1111 "react-native" : " 0.55.4" ,
12- "react-native-android-wifi" : " 0.0.36 "
12+ "react-native-android-wifi" : " 0.0.37 "
1313 },
1414 "devDependencies" : {
1515 "babel-jest" : " 23.0.1" ,
Original file line number Diff line number Diff line change 99 "dependencies" : {
1010 "react" : " 16.3.1" ,
1111 "react-native" : " 0.55.4" ,
12- "react-native-android-wifi" : " 0.0.36 "
12+ "react-native-android-wifi" : " 0.0.37 "
1313 },
1414 "devDependencies" : {
1515 "babel-jest" : " 23.0.1" ,
Original file line number Diff line number Diff line change @@ -184,3 +184,12 @@ Method to force wifi usage. Android by default sends all requests via mobile dat
184184// Is important to enable only when communicating with the device via wifi
185185// and remember to disable it when disconnecting from device.
186186wifi .forceWifiUsage (true );
187+ ```
188+
189+
190+ Add a hidden wifi network and connect to it
191+ ``` javascript
192+ // Callback returns true if network added and tried to connect to it successfully
193+ // It may take up to 15s to connect to hidden networks
194+ wifi .connectToHiddenNetwork (ssid, password, (networkAdded ) => {});
195+ ```
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-android-wifi" ,
3- "version" : " 0.0.36 " ,
3+ "version" : " 0.0.37 " ,
44 "description" : " A react-native implementation for viewing and connecting to Wifi networks on Android devices." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments