import type { NewMixanOptions } from '@mixan/sdk'; import { Mixan } from '@mixan/sdk'; export class MixanNative extends Mixan { constructor(options: NewMixanOptions) { super(options); } async properties() { return { ip: await super.ip(), }; } async init(properties: Record) { super.init({ ...(await this.properties()), ...(properties ?? {}), }); } screenView(route: string, properties?: Record): void { super.event('screen_view', { ...properties, route: route, }); } }