@qonversion/react-native-sdk
Version:
Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co
22 lines (17 loc) • 493 B
text/typescript
import {UserPropertyKey} from './enums';
import mapper from '../internal/Mapper';
class UserProperty {
key: string;
value: string;
/**
* {@link UserPropertyKey} used to set this property.
* Returns {@link UserPropertyKey.CUSTOM} for custom properties.
*/
definedKey: UserPropertyKey;
constructor(key: string, value: string) {
this.key = key;
this.value = value;
this.definedKey = mapper.convertDefinedUserPropertyKey(key);
}
}
export default UserProperty;