From 10c8a1c417ce1d91e19312fb75af404c52ad5a55 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Thu, 3 Dec 2015 07:02:33 -0800 Subject: [PATCH] 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 --- Libraries/Network/NetInfo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/Network/NetInfo.js b/Libraries/Network/NetInfo.js index 1414b363d..c2099c9e3 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -110,7 +110,8 @@ var _isConnectedSubscriptions = new Map(); * `` * 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')); * });