MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / setupIterable

Method setupIterable

src/core/classes/Iterable.ts:195–206  ·  view source on GitHub ↗

* @internal * Does basic setup of the Iterable SDK. * @param config - The configuration object for the Iterable SDK

(config: IterableConfig = new IterableConfig())

Source from the content-addressed store, hash-verified

193 * @param config - The configuration object for the Iterable SDK
194 */
195 private static setupIterable(config: IterableConfig = new IterableConfig()) {
196 if (config) {
197 Iterable.savedConfig = config;
198
199 IterableLogger.setLoggingEnabled(config.logReactNativeSdkCalls ?? true);
200 IterableLogger.setLogLevel(config.logLevel);
201
202 Iterable.embeddedManager = new IterableEmbeddedManager(config);
203 }
204
205 this.setupEventHandlers();
206 }
207
208 /**
209 * Associate the current user with the passed in email parameter.

Callers 2

initializeMethod · 0.95
initialize2Method · 0.95

Calls 3

setupEventHandlersMethod · 0.95
setLoggingEnabledMethod · 0.80
setLogLevelMethod · 0.80

Tested by

no test coverage detected