@splitsoftware/splitio-react-native
Version:
Split SDK for React Native
27 lines (21 loc) • 902 B
text/typescript
import type SplitIO from '@splitsoftware/splitio-commons/types/splitio';
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants';
const packageVersion = '1.5.0';
export const defaults = {
startup: {
// Stress the request time used while starting up the SDK.
requestTimeoutBeforeReady: 5,
// How many quick retries we will do while starting up the SDK.
retriesOnFailureBeforeReady: 1,
// Maximum amount of time used before notifies me a timeout.
readyTimeout: 10,
// Amount of time we will wait before the first push of events.
eventsFirstPushWindow: 10,
},
// Consent is considered granted by default
userConsent: CONSENT_GRANTED as SplitIO.ConsentStatus,
// Instance version.
version: `reactnative-${packageVersion}`,
// @TODO check if we should provide some way to overwrite the default log level
debug: undefined,
};