@react-native-community/netinfo
Version:
React Native Network Info API for iOS & Android
40 lines (35 loc) • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NetInfoCellularGeneration = exports.NetInfoStateType = 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 = NetInfoStateType;
(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";
})(NetInfoStateType || (exports.NetInfoStateType = NetInfoStateType = {}));
let NetInfoCellularGeneration;
exports.NetInfoCellularGeneration = NetInfoCellularGeneration;
(function (NetInfoCellularGeneration) {
NetInfoCellularGeneration["2g"] = "2g";
NetInfoCellularGeneration["3g"] = "3g";
NetInfoCellularGeneration["4g"] = "4g";
NetInfoCellularGeneration["5g"] = "5g";
})(NetInfoCellularGeneration || (exports.NetInfoCellularGeneration = NetInfoCellularGeneration = {}));
//# sourceMappingURL=types.js.map