@fullstory/react-native
Version:
The official FullStory React Native plugin
24 lines (21 loc) • 874 B
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
import { OnReadyResponse } from './fullstoryInterface';
export interface Spec extends TurboModule {
anonymize(): void;
identify(uid: string, userVars?: Object): void;
setUserVars(userVars: Object): void;
onReady(): Promise<OnReadyResponse>;
getCurrentSession(): Promise<string>;
getCurrentSessionURL(): Promise<string>;
consent(userConsents: boolean): void;
event(eventName: string, eventProperties: Object): void;
shutdown(): void;
restart(): void;
log(logLevel: number, message: string): void;
resetIdleTimer(): void;
startPage(nonce: string, pageName: string, pageProperties?: Object): void;
endPage(uuid: string): void;
updatePage(uuid: string, pageProperties: Object): void;
}
export default TurboModuleRegistry.get<Spec>('FullStory');