react-native-nami-sdk
Version:
React Native SDK for Nami - No-code paywall and onboarding flows with A/B testing.
15 lines (14 loc) • 557 B
TypeScript
import { NativeEventEmitter } from 'react-native';
export declare enum NamiFlowManagerEvents {
Handoff = "Handoff",
FlowEvent = "FlowEvent"
}
export declare const NamiFlowManager: {
emitter: NativeEventEmitter;
registerStepHandoff: (callback: (handoffTag: string, handoffData?: Record<string, unknown>) => void) => (() => void);
resume: () => void;
pause: () => void;
registerEventHandler: (callback: (payload: Record<string, unknown>) => void) => (() => void);
finish: () => void;
isFlowOpen: () => Promise<boolean>;
};