From d03a1b4db47d1d9487e4c65ff276e81e3a7eb192 Mon Sep 17 00:00:00 2001 From: Shachar Udi Date: Wed, 4 Mar 2026 10:10:20 -0500 Subject: [PATCH 1/2] MOB-2393 fixed initializeSDKIOS bridge definition --- example/src/App.tsx | 4 ++-- src/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 473fb83..7f3ccd5 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import { SafeAreaView, Keyboard, Alert, Platform } from 'react-native'; import { - initializeIOS, + initializeSDKIOS, setUserId, setLogLevel, clearUser, @@ -80,7 +80,7 @@ export default class App extends React.Component { private onAppReady = async (): Promise => { // this is for iOS only, Android TSAccountProtectionSDK is initialized from application onCreate. if (Platform.OS === 'ios') { - await initializeIOS(config.clientId, null); + await initializeSDKIOS(); } const isLogEnabled = true; diff --git a/src/index.tsx b/src/index.tsx index 9fd4427..24c1560 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -68,7 +68,7 @@ export const enum TSAction { // SDK Functions - Direct exports of the native module methods export function initializeSDKIOS(): Promise { - return TsAccountprotection.initializeSDK(); + return TsAccountprotection.initializeSDKIOS(); } export function initializeIOS(clientId: string, baseUrl?: string | null): Promise { From bb12657fe2c293120f78cadf4063554a59206391 Mon Sep 17 00:00:00 2001 From: Shachar Udi Date: Wed, 4 Mar 2026 10:15:12 -0500 Subject: [PATCH 2/2] MOB-2393 Updated release notes --- RELEASE_NOTES.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 234eb17..4bfc050 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,17 @@ # Release Notes +## Version 0.2.1 + +### 🐛 Bug Fixes +- **Fixed initializeSDKIOS function**: Resolved critical issue where `initializeSDKIOS()` was undefined due to incorrect native bridge method mapping + - The function was incorrectly calling `TsAccountprotection.initializeSDK()` instead of `TsAccountprotection.initializeSDKIOS()` + - This caused runtime errors when trying to initialize the SDK on iOS without parameters + - Updated example app to use correct `initializeSDKIOS()` method call + +### Technical Details +- Corrected native method bridge mapping in `initializeSDKIOS` function +- Updated example implementation to demonstrate proper usage + ## Version 0.2.0 ### 🚀 Major API Refactor - Breaking Changes