Rovenue React Native SDK
    Preparing search index...

    Type Alias RovenueConfig

    type RovenueConfig = {
        apiKey: string;
        appVersion?: string;
        automaticStoreMessages?: boolean;
        awaitMmpAttribution?: boolean;
        baseUrl?: string;
        environment?: "prod" | "staging" | "development";
        facebookAppId?: string;
        logLevel?: "off" | "error" | "warn" | "info" | "debug" | "trace";
    }
    Index
    apiKey: string
    appVersion?: string

    Optional override for the host app's user-facing version. When omitted, the native modules auto-read the value:

    • iOS: Bundle.main.infoDictionary["CFBundleShortVersionString"]
    • Android: packageManager.getPackageInfo(packageName, 0).versionName For Expo apps the auto-read value is baked from app.json's expo.version at prebuild time, so most callers should leave this undefined.
    automaticStoreMessages?: boolean

    iOS only. true (default) leaves App Store messages — billing issue, price increase consent, win-back offer — to StoreKit, which shows each one when the app comes to the foreground. false holds them until you call Rovenue.showStoreMessages() (after onboarding, say). Android shows Play's messages only when asked, through the same call.

    awaitMmpAttribution?: boolean

    Hold the first placement request after install (up to 3 s) until setAttribution has been called with your MMP's callback, so the first onboarding can be targeted by the MMP's campaign data. Default false: only Rovenue's own first-launch signals are waited for.

    baseUrl?: string

    API host. Optional — defaults to the hosted endpoint https://api.rovenue.io. Self-hosters pass their own origin (e.g. https://api.acme.com). The Rust core enforces https:// (http:// is accepted only for localhost during local dev).

    environment?: "prod" | "staging" | "development"

    Remote Config environment — selects which flag/experiment set the backend serves: "prod" (default), "staging", or "development". Sent as the X-Rovenue-Env header on the /v1/config request. Omit to use production.

    facebookAppId?: string

    Android only: the Facebook App ID used to read Meta's install referrer. Defaults to the com.facebook.sdk.ApplicationId manifest meta-data your app already carries when it uses Meta's SDK. Ignored on iOS.

    logLevel?: "off" | "error" | "warn" | "info" | "debug" | "trace"