Rovenue React Native SDK
    Preparing search index...

    Type Alias RovenueFunnelViewProps

    Props for RovenueFunnelView.

    type RovenueFunnelViewProps = {
        locale?: string;
        onCheck?: FunnelCheckHandler;
        onCompleted?: () => void;
        onCustomAction?: (action: FunnelCustomAction) => void;
        onDismissed?: () => void;
        onError?: (error: RovenueError) => void;
        onLoaded?: (event: FunnelLoadedEvent) => void;
        onPhotoSelected?: (questionKey: string, photo: FunnelPhotoRef) => void;
        onPurchase?: (packageIdentifier: string, winBackOfferId?: string) => void;
        onRestore?: () => void;
        onScreenChanged?: (event: FunnelScreenEvent) => void;
        onUnavailable?: (event: FunnelUnavailableEvent) => void;
        onUrl?: (url: string) => void;
        placementIdentifier: string;
        values?: Record<string, string>;
    }
    Index
    locale?: string

    Your photo checker; without it a check applies its whenUnavailable. Presence is decided when the funnel resolves.

    onCompleted?: () => void

    The funnel reached its end. Never fires together with onDismissed.

    onCustomAction?: (action: FunnelCustomAction) => void

    An action the funnel's author defined for this app to interpret.

    onDismissed?: () => void

    The visitor dismissed the funnel (its close action). Never fires together with onCompleted, and not when the host unmounts the view.

    onError?: (error: RovenueError) => void

    Resolving failed (offline with no cache or fallback, an invalid or unsupported config), or a screen did not decode (serverCode FUNNEL_SCREEN_UNDECODABLE). The previous funnel is cleared. A superseded resolve is never reported.

    onLoaded?: (event: FunnelLoadedEvent) => void

    The first screen is on screen. For a draft, fires again after every live-refresh rebuild.

    onPhotoSelected?: (questionKey: string, photo: FunnelPhotoRef) => void

    A photo_upload question was answered: its key and the photo on the device. Call releasePhoto once you are done with the file.

    onPurchase?: (packageIdentifier: string, winBackOfferId?: string) => void

    The funnel wants this package purchased. Call Rovenue.purchase. winBackOfferId is set when the funnel sells the package at its win-back offer: buy it with Rovenue.purchase(pkg, { winBackOffer }), the offer from Rovenue.eligibleWinBackOffers(pkg) with that identifier (ignoring it buys at the regular price).

    onRestore?: () => void

    The funnel asked for purchases to be restored.

    onScreenChanged?: (event: FunnelScreenEvent) => void

    The visible screen changed, including the first.

    onUnavailable?: (event: FunnelUnavailableEvent) => void

    The view has nothing to draw: an empty or unknown placement, a placement with no target, or a draft that cannot be served (with its issues). The previous funnel is cleared.

    onUrl?: (url: string) => void

    Omit to leave open_url actions INERT; a legal block's terms link then opens only an http(s) address, in the system browser. Presence is decided when the funnel resolves.

    placementIdentifier: string

    The placement to resolve. Resolution happens NATIVELY — there is no JS getFunnel, because nothing about a funnel crosses the bridge. A new value resolves again; the previous funnel is cleared first. In a debug build on a Sandbox key the funnel's latest draft is shown, with a "Draft" badge, and every builder edit arrives live.

    values?: Record<string, string>

    Values for the funnel's declared externals (an ad's scene, a campaign): trimmed, 512 characters at most, undeclared names dropped. A fresh value overrides a restored one and preselects a defaultFrom question. A changed value resolves again. Never pass personal data: values are written to the on-device session state.