@deeplinknow/react-native
Version:
React Native + Expo SDK for the Deeplink Now deferred deep linking platform
31 lines • 1.05 kB
TypeScript
import type { MatchResponse } from "./types";
export type { MatchRequestBody, MatchResponse, Fingerprint, DeeplinkMatch, FingerprintMatch, InitResponse, } from "./types";
export interface DeepLinkNowConfig {
enableLogs?: boolean;
apiKey?: string;
}
export type DeferredUserResponse = MatchResponse;
declare class DeepLinkNow {
private apiKey;
private config;
private installTime;
private validDomains;
private log;
private warn;
initialize(apiKey: string, config?: DeepLinkNowConfig): Promise<void>;
isValidDomain(domain: string): boolean;
hasDeepLinkToken(): Promise<boolean>;
checkClipboard(): Promise<string | null>;
parseDeepLink(url: string): {
path: string;
parameters: Record<string, string>;
} | null;
private getFingerprint;
private simpleHash;
private generateHardwareFingerprint;
private makeRequest;
findDeferredUser(): Promise<MatchResponse | null>;
}
declare const _default: DeepLinkNow;
export default _default;
//# sourceMappingURL=index.d.ts.map