one
Version:
One is a React framework for web, iOS, and Android apps.
23 lines (20 loc) • 474 B
text/typescript
// network state shapes matching expo-network. enums are string unions of
// their lowercase member names; expo's screaming values become lowercase.
export type NetworkStateType =
| 'none'
| 'unknown'
| 'cellular'
| 'wifi'
| 'bluetooth'
| 'ethernet'
| 'wimax'
| 'vpn'
| 'other'
export interface NetworkState {
type: NetworkStateType
isConnected: boolean
isInternetReachable: boolean
}
export interface NetworkStateSubscription {
remove(): void
}