UNPKG

@chargebee/react-native-chargebee

Version:
33 lines (32 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StoreStatus = exports.ProductType = void 0; exports.sdkKeyForPlatform = sdkKeyForPlatform; var _reactNative = require("react-native"); let ProductType; exports.ProductType = ProductType; (function (ProductType) { ProductType["UNKNOWN"] = "unknown"; ProductType["CONSUMABLE"] = "consumable"; ProductType["NON_CONSUMABLE"] = "non_consumable"; ProductType["NON_RENEWING_SUBSCRIPTION"] = "non_renewing_subscription"; })(ProductType || (exports.ProductType = ProductType = {})); let StoreStatus; exports.StoreStatus = StoreStatus; (function (StoreStatus) { StoreStatus[StoreStatus["ACTIVE"] = 0] = "ACTIVE"; StoreStatus[StoreStatus["IN_TRIAL"] = 1] = "IN_TRIAL"; StoreStatus[StoreStatus["CANCELLED"] = 2] = "CANCELLED"; StoreStatus[StoreStatus["PAUSED"] = 3] = "PAUSED"; })(StoreStatus || (exports.StoreStatus = StoreStatus = {})); function sdkKeyForPlatform(androidSdkKey, iOsSdkKey) { if (_reactNative.Platform.OS === 'ios') { return iOsSdkKey; } else if (_reactNative.Platform.OS === 'android') { return androidSdkKey; } throw new Error('Platform not supported.'); } //# sourceMappingURL=Purchases.js.map