Hierarchy

  • LDOptions
  • RNSpecificOptions
    • LDOptions

Properties

allAttributesPrivate?: boolean
applicationInfo?: {
    id?: string;
    name?: string;
    version?: string;
    versionName?: string;
}

Type declaration

  • Optional id?: string
  • Optional name?: string
  • Optional version?: string
  • Optional versionName?: string
automaticBackgroundHandling?: boolean

Enable handling associated with transitioning between the foreground and background.

Defaults to true.

automaticNetworkHandling?: boolean

Enable handling of network availability. When this is true the connection state will automatically change when network availability changes.

Defaults to true.

baseUri?: string
capacity?: number
cleanOldPersistentData?: boolean
debug?: boolean
diagnosticOptOut?: boolean
diagnosticRecordingInterval?: number
disableCache?: boolean
eventsUri?: string
flushInterval?: number
hooks?: Hook[]
initialConnectionMode?: ConnectionMode

Sets the mode to use for connections when the SDK is initialized.

Remarks

Possible values are offline, streaming, or polling. See ConnectionMode for more information.

Default Value

streaming.
inspectors?: LDInspection[]
logger?: LDLogger
maxCachedContexts?: number
payloadFilterKey?: string
plugins?: LDPlugin[]

A list of plugins to be used with the SDK.

Plugin support is currently experimental and subject to change.

pollInterval?: number
privateAttributes?: string[]
runInBackground?: boolean

Some platforms (windows, web, mac, linux) can continue executing code in the background.

Defaults to false.

sendEvents?: boolean
storage?: RNStorage

Custom storage implementation.

Typical SDK usage will not involve using customized storage.

Storage is used used for caching flag values for context as well as persisting generated identifiers. Storage could be used for additional features in the future.

Defaults to @react-native-async-storage/async-storage see their documentation for more information.

Remarks

If there is an issue with the storage implementation, then generated keys and context caches may not be persisted. This will cause the SDK to generate new keys and context caches on every startup.

streamInitialReconnectDelay?: number
streamUri?: string
useReport?: boolean
withReasons?: boolean
wrapperName?: string
wrapperVersion?: string

Generated using TypeDoc