From 56793e3f8dcd10adc95fe6325fcddd59269f359a Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Tue, 8 Dec 2015 12:02:17 -0800 Subject: [PATCH] Fixed Flow error Reviewed By: gabelevi Differential Revision: D2734738 fb-gh-sync-id: 5ba3d4285185cd220a5bf6a26cb3818311822e52 --- 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 2b17603ad..d4295754f 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -229,7 +229,7 @@ const NetInfo = { }, }, - isConnectionExpensive(callback: (metered: ?boolean, error: string) => void): void { + isConnectionExpensive(callback: (metered: ?boolean, error?: string) => void): void { if (Platform.OS === 'android') { RCTNetInfo.isConnectionMetered((_isMetered) => { callback(_isMetered);