fixed mardown formatting in NetInfo code to allow proper JS Docs
Summary: Current docs look bad https://facebook.github.io/react-native/docs/netinfo.html#content Closes https://github.com/facebook/react-native/pull/4531 Reviewed By: svcscm Differential Revision: D2717974 Pulled By: androidtrunkagent fb-gh-sync-id: cd2cadfb782f8ce6a418ca7af5fcefb54504059b
This commit is contained in:
parent
752a86786f
commit
10c8a1c417
|
@ -110,7 +110,8 @@ var _isConnectedSubscriptions = new Map();
|
|||
* `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />`
|
||||
* Asynchronously determine if the device is connected and details about that connection.
|
||||
*
|
||||
* Android Connectivity Types
|
||||
* Android Connectivity Types.
|
||||
*
|
||||
* - `NONE` - device is offline
|
||||
* - `BLUETOOTH` - The Bluetooth data connection.
|
||||
* - `DUMMY` - Dummy data connection.
|
||||
|
@ -124,6 +125,7 @@ var _isConnectedSubscriptions = new Map();
|
|||
* - `WIFI` - The WIFI data connection.
|
||||
* - `WIMAX` - The WiMAX data connection.
|
||||
* - `UNKNOWN` - Unknown data connection.
|
||||
*
|
||||
* The rest ConnectivityStates are hidden by the Android API, but can be used if necessary.
|
||||
*
|
||||
* ### isConnectionMetered
|
||||
|
@ -132,6 +134,7 @@ var _isConnectedSubscriptions = new Map();
|
|||
* classified as metered when the user is sensitive to heavy data usage on that connection due to
|
||||
* monetary costs, data limitations or battery/performance issues.
|
||||
*
|
||||
* ```
|
||||
* NetInfo.isConnectionMetered((isConnectionMetered) => {
|
||||
* console.log('Connection is ' + (isConnectionMetered ? 'Metered' : 'Not Metered'));
|
||||
* });
|
||||
|
|
Loading…
Reference in New Issue