Skip to content

Commit

Permalink
[@react-native-community/netinfo_v4.x.x] Export NetInfo enumerations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
attitude authored and pascalduez committed Oct 25, 2019
1 parent e7737a3 commit 5860aa1
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ declare module '@react-native-community/netinfo' {
listener: (NetInfoState) => mixed
): NetInfoSubscription;

declare export var NetInfoStateType: $ReadOnly<{|
unknown: "unknown",
none: "none",
cellular: "cellular",
wifi: "wifi",
bluetooth: "bluetooth",
ethernet: "ethernet",
wimax: "wimax",
vpn: "vpn",
other: "other"
|}>

declare export var NetInfoCellularGeneration: $ReadOnly<{|
'2g': "2g",
'3g': "3g",
'4g': "4g"
|}>

declare export default $ReadOnly<{|
fetch: typeof fetch,
addEventListener: typeof addEventListener,
Expand Down

0 comments on commit 5860aa1

Please sign in to comment.