Rovenue React Native SDK
    Preparing search index...

    Type Alias RovenueConfig

    type RovenueConfig = {
        apiKey: string;
        appVersion?: string;
        baseUrl?: string;
        environment?: "prod" | "staging" | "development";
        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.
    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.

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