Skip to content

Commit

Permalink
(docs) improve js usage examples in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pusherman committed May 25, 2019
1 parent dd2e975 commit 4df23fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ yarn add react-native-network-info
import { NetworkInfo } from 'react-native-network-info';

// Get Local IP
await NetworkInfo.getIPAddress();
const ipAddress = await NetworkInfo.getIPAddress();

// Get IPv4 IP
await NetworkInfo.getIPV4Address()
const ipv4Address = await NetworkInfo.getIPV4Address()

// Get Broadcast
await NetworkInfo.getBroadcast()
const broadcast = await NetworkInfo.getBroadcast()

// Get SSID
await NetworkInfo.getSSID()
const ssid = await NetworkInfo.getSSID()

// Get BSSID
await NetworkInfo.getBSSID()
const bssid = await NetworkInfo.getBSSID()
```


Expand Down

0 comments on commit 4df23fc

Please sign in to comment.