- Fix response variable from getCurrentReachability

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
This commit is contained in:
Christopher 2015-10-11 19:07:35 -07:00 committed by facebook-github-bot-7
parent 720228825b
commit 53403423ca
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ var NetInfo = {
return new Promise((resolve, reject) => {
RCTNetInfo.getCurrentReachability(
function(resp) {
resolve(resp.network_reachability);
resolve(resp.network_info);
},
reject
);