From 53403423ca281c7961fb8b7d5e99ed04c7d65748 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 11 Oct 2015 19:07:35 -0700 Subject: [PATCH] - Fix response variable from getCurrentReachability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Fixes #3333 and #2802 Closes https://github.com/facebook/react-native/pull/3345 Reviewed By: @​svcscm Differential Revision: D2530744 Pulled By: @vjeux fb-gh-sync-id: 521cbe482f3811339b21cf68ba2269d2b5286e82 --- Libraries/Network/NetInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Network/NetInfo.js b/Libraries/Network/NetInfo.js index 5c45be617..6c811f925 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -185,7 +185,7 @@ var NetInfo = { return new Promise((resolve, reject) => { RCTNetInfo.getCurrentReachability( function(resp) { - resolve(resp.network_reachability); + resolve(resp.network_info); }, reject );