Fixed Flow error

Reviewed By: gabelevi

Differential Revision: D2734738

fb-gh-sync-id: 5ba3d4285185cd220a5bf6a26cb3818311822e52
This commit is contained in:
Konstantin Raev 2015-12-08 12:02:17 -08:00 committed by facebook-github-bot-5
parent 7b13ce30f2
commit 56793e3f8d

View File

@ -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);