@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
34 lines (33 loc) • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NetInfoStateType = exports.NetInfoCellularGeneration = void 0;
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
let NetInfoStateType = exports.NetInfoStateType = /*#__PURE__*/function (NetInfoStateType) {
NetInfoStateType["unknown"] = "unknown";
NetInfoStateType["none"] = "none";
NetInfoStateType["cellular"] = "cellular";
NetInfoStateType["wifi"] = "wifi";
NetInfoStateType["bluetooth"] = "bluetooth";
NetInfoStateType["ethernet"] = "ethernet";
NetInfoStateType["wimax"] = "wimax";
NetInfoStateType["vpn"] = "vpn";
NetInfoStateType["other"] = "other";
return NetInfoStateType;
}({});
let NetInfoCellularGeneration = exports.NetInfoCellularGeneration = /*#__PURE__*/function (NetInfoCellularGeneration) {
NetInfoCellularGeneration["2g"] = "2g";
NetInfoCellularGeneration["3g"] = "3g";
NetInfoCellularGeneration["4g"] = "4g";
NetInfoCellularGeneration["5g"] = "5g";
return NetInfoCellularGeneration;
}({});
//# sourceMappingURL=types.js.map