Tealium Prism React Native
    Preparing search index...

    Type Alias JsonValue

    JsonValue:
        | string
        | number
        | boolean
        | null
        | JsonValue[]
        | { [key: string]: JsonValue }

    Any JSON-serializable value that can cross the React Native bridge.

    The type is named JsonValue instead of DataItem to avoid a clash with the native Prism DataItem wrapper.

    Only JSON-native types are valid: strings, numbers, booleans, null, arrays, and plain objects. Functions, undefined, Symbol, and BigInt are not JSON-serializable. null is a valid value. It maps to NSNull() on iOS and to DataItem.NULL on Android.

    Date is not a JSON type. JSON.stringify converts it to an ISO string, so the value changes from Date to string. Pass date.toISOString() instead.

    Non-finite numbers (Infinity, -Infinity, and NaN) become the strings "Infinity", "-Infinity", and "NaN" before they cross the bridge. This matches the native Prism SDK behavior.