refiner-react-native
Version:
Official React Native wrapper for the Refiner Mobile SDK
22 lines (19 loc) • 635 B
TypeScript
import { NativeModule } from "react-native";
export interface RefinerSDKInterface extends NativeModule {
addToResponse: (response: Record<string, unknown> | null) => void;
identifyUser: (
userId: string,
userTraits: Record<string, unknown>,
locale: string | null,
identityVerification: string | null
) => Promise<void>;
initialize: (projectId: string, debugMode: boolean) => void;
resetUser: () => void;
setProject: (projectId: string | null) => void;
trackEvent: (eventName: string) => void;
}
declare module "react-native" {
interface NativeModulesStatic {
RNRefiner: RefinerSDKInterface;
}
}