mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
Fixed Flow error
Reviewed By: gabelevi Differential Revision: D2734738 fb-gh-sync-id: 5ba3d4285185cd220a5bf6a26cb3818311822e52
This commit is contained in:
parent
7b13ce30f2
commit
56793e3f8d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user