From c07b5ccd8ba26864bab5e3a5ca654bfbe58a2afa Mon Sep 17 00:00:00 2001 From: Loren Posen Date: Mon, 20 Oct 2025 15:04:19 -0700 Subject: [PATCH] feat: update initialization method in ReactIterableAPI --- example/src/hooks/useIterableApp.tsx | 1 + ios/RNIterableAPI/ReactIterableAPI.swift | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/src/hooks/useIterableApp.tsx b/example/src/hooks/useIterableApp.tsx index 86c5f7776..5bfb58306 100644 --- a/example/src/hooks/useIterableApp.tsx +++ b/example/src/hooks/useIterableApp.tsx @@ -213,6 +213,7 @@ export const IterableAppProvider: FunctionComponent< // Initialize app return Iterable.initialize(key, config) .then((isSuccessful) => { + console.log('initialize success', isSuccessful); setIsInitialized(isSuccessful); if (!isSuccessful) diff --git a/ios/RNIterableAPI/ReactIterableAPI.swift b/ios/RNIterableAPI/ReactIterableAPI.swift index 6ebffaf40..249f374cc 100644 --- a/ios/RNIterableAPI/ReactIterableAPI.swift +++ b/ios/RNIterableAPI/ReactIterableAPI.swift @@ -608,16 +608,15 @@ import React name: Notification.Name.iterableInboxChanged, object: nil) DispatchQueue.main.async { - IterableAPI.initialize2( + IterableAPI.initialize( apiKey: apiKey, launchOptions: launchOptions, - config: iterableConfig, - apiEndPointOverride: apiEndPointOverride - ) { result in - resolver(result) - } + config: iterableConfig + ) IterableAPI.setDeviceAttribute(name: "reactNativeSDKVersion", value: version) + + resolver(true) } }