# React Native SDK Changelog

import { ChangelogBadge } from '/snippets/ChangelogBadge.jsx';

<Info>
  Release notes for the React Native SDK are published here as new versions are released. Check back after each SDK update for a detailed summary of changes, new features, and migration guidance.
</Info>
## v1.4.0
*August 14, 2026*

- <ChangelogBadge type="changed" /> **Native SDKs Updated: iOS 2.22.0 and Android 2.21.1**  
  The underlying native dependencies were bumped: `YunoSDK` (iOS) from 2.18.0 to 2.22.0 and `com.yuno.payments:android-sdk` from 2.17.2 to 2.21.1.

## v1.3.2
*August 3, 2026*

- <ChangelogBadge type="fixed" /> **Headless Token Generation and Enrollment Accept the Documented camelCase Properties**  
  `YunoSdk.generateToken()` and `YunoSdk.continueEnrollment()` failed at runtime when called with the camelCase properties declared by the package's own TypeScript types (`checkoutSession`, `paymentMethod`, `expirationMonth`, …), because the native bridges decode snake_case keys only. On iOS this surfaced as `TOKEN_GENERATION_ERROR` ("No value associated with key checkout_session") and on Android as a `NullPointerException` on `PaymentMethod.getType()`. The SDK now converts payload keys from camelCase to snake_case at the JS boundary before invoking the native bridge, so the documented TypeScript contract works on both platforms. Payloads already using snake_case keys are passed through unchanged, so no migration is required.

## v1.3.1
*July 13, 2026*

- <ChangelogBadge type="fixed" /> **iOS Build Failure on Case-Insensitive File Systems**  
  Renamed the React Native bridge pod from `YunoSdk` to `YunoSdkReactNative` to eliminate a name collision with the native `YunoSDK` pod on case-insensitive macOS file systems (the default on all Macs). The collision caused linker failures during `pod install` / build — notably on Xcode 26 — unless `use_frameworks!` was enabled. Projects using React Native autolinking require no changes; if your Podfile references `pod 'YunoSdk'` directly, update it to `pod 'YunoSdkReactNative'`.

- <ChangelogBadge type="fixed" /> **TypeScript Definitions Now Published to npm**  
  The npm package now ships the TypeScript declaration files referenced by its `types` field (`lib/typescript/index.d.ts`). Previous versions declared the types but did not include them in the published package, so TypeScript consumers got no type resolution out of the box. TypeScript projects now get full typing and autocompletion without workarounds.

## v1.3.0
*July 2, 2026*

- <ChangelogBadge type="changed" /> **Native SDK Bumps**  
  Updated the underlying native SDKs to Android `2.17.2` and iOS `2.18.0`.

- <ChangelogBadge type="fixed" /> **Android Compilation Failure in v1.2.0**  
  Fixed an issue where v1.2.0 failed to compile on Android projects.

**Payments**

- <ChangelogBadge type="breaking" /> **getThreeDSecureChallenge Removed**  
  Removed `YunoSdk.getThreeDSecureChallenge()` and the `ThreeDSecureChallengeResponse` type. Use the new `continueCardPayment()` method instead — the SDK now handles the 3DS challenge internally and returns the final payment state.

- <ChangelogBadge type="added" /> **continueCardPayment Headless Method**  
  Added `YunoSdk.continueCardPayment(checkoutSession, countryCode?, showPaymentStatus?)` to complete headless card payments that require an additional action, such as a 3DS challenge. It resolves with the final payment state (`CardPaymentResult`). Supports CARD payments only.

## v1.2.0
*May 19, 2026*

- <ChangelogBadge type="added" /> **Payment Render Flow**  
  Added the new Payment Render flow with the `<YunoPaymentForm>` component and bridge methods (`startRenderFlow`, `showForm`, `submitForm`, `continueRender`) so merchants can embed the payment form inline with full lifecycle control.

- <ChangelogBadge type="added" /> **Enrollment Render Flow**  
  Added the Enrollment Render flow with the `<YunoEnrollmentForm>` component for embedded card enrollment, mirroring the Payment Render API.

- <ChangelogBadge type="changed" /> **Native SDK Bumps**  
  Bumped the underlying native SDKs to Android `2.15.1` and iOS `2.16.0`, bringing the latest payment, enrollment, and security improvements to the React Native wrapper.

- <ChangelogBadge type="fixed" /> **Android 15 Edge-to-Edge Overlap**  
  Configured edge-to-edge on Android 15 to prevent the payment UI from overlapping system bars, and now runs `enableEdgeToEdge` on the UI thread.

- <ChangelogBadge type="fixed" /> **Samsung One UI Compatibility**  
  Uses `setDecorFitsSystemWindows` for Samsung One UI compatibility, preventing layout glitches on affected devices.

- <ChangelogBadge type="fixed" /> **Seamless Payment Startup Crashes**  
  Made native module access fully lazy, ensured payment status events are dispatched on the main thread, safely unwrap the iOS view controller, and resolved a `TurboModuleRegistry` error in seamless flows.

- <ChangelogBadge type="fixed" /> **Android Status Alignment**  
  Aligned Android status values with the TypeScript `YunoStatus` enum and kept render flow status mappings separate from shared mappings.

- <ChangelogBadge type="security" /> **fast-xml-parser DoS Vulnerability**  
  Upgraded `fast-xml-parser` to address denial-of-service advisories (CVE-2026-25128).

## v1.1.0
*March 10, 2026*

- <ChangelogBadge type="breaking" /> **CardFlow Configuration Removed**  
  The `CardFlow` enum and the `cardFlow` property in `YunoConfig` have been removed. Card form type is now configured from the WHITELABEL Dashboard instead of the client SDK. Remove any `CardFlow` import and `cardFlow` references from your initialization code before upgrading.  
  [Migration guide →](https://github.com/yuno-payments/yuno-sdk-react-native#breaking-changes-v110)

- <ChangelogBadge type="changed" /> **Native SDK Bumps**  
  Bumped the underlying native SDKs to Android `2.11.0` and iOS `2.12.9-RC`.

- <ChangelogBadge type="fixed" /> **iOS Seamless Payment Flow**  
  Switched iOS seamless payments to `startPaymentSeamlessLite`, now resolves promises with the final payment status instead of `PROCESSING`, runs the call on `MainActor`, and uses the `currentLanguage` from `initialize` in `SeamlessParams`.

- <ChangelogBadge type="fixed" /> **Android removeListeners Crash**  
  Fixed an Android crash caused by a type mismatch on `removeListeners`. The parameter type now matches what React Native passes from JS.

- <ChangelogBadge type="fixed" /> **Android onPaymentSelected Signature**  
  Updated the `onPaymentSelected` callback signature to match Android SDK 2.11.0.

- <ChangelogBadge type="security" /> **minimatch ReDoS Vulnerability**  
  Updated `minimatch` to resolve a regular-expression denial-of-service (ReDoS) advisory in the dependency tree.

## v1.0.30
*January 13, 2026*

- <ChangelogBadge type="added" /> **TurboModule Support**  
  Added TurboModule support for React Native 0.82+ via a new `NativeYunoSdk` codegen spec, while remaining backward compatible with the Old Architecture through a `NativeModules` fallback.

## v1.0.29
*January 13, 2026*

- <ChangelogBadge type="changed" /> **New Architecture Preparation**  
  Internal updates preparing the package for React Native 0.82+ and the New Architecture (TurboModules). No public API changes; full TurboModule support arrived in 1.0.30.

## v1.0.28
*January 13, 2026*

- <ChangelogBadge type="changed" /> **Internal Release Pipeline Updates**  
  Maintenance republish with no functional changes. No API changes required.

## v1.0.27
*January 13, 2026*

- <ChangelogBadge type="changed" /> **Internal Release Pipeline Updates**  
  Maintenance republish with no functional changes. No API changes required.

## v1.0.26
*December 23, 2025*

- <ChangelogBadge type="fixed" /> **iOS saveCardEnabled Parsing**  
  Fixed a typo in the iOS config key parser that prevented `saveCardEnabled` from being applied. The toggle now correctly reaches the native SDK.

## v1.0.25
*December 22, 2025*

- <ChangelogBadge type="changed" /> **iOS Podspec Pin**  
  Pinned the iOS `YunoSDK` dependency to `2.9.0-r`. No API changes required.

## v1.0.24
*December 17, 2025*

- <ChangelogBadge type="fixed" /> **iOS Language in Payment Full Flow**  
  Fixed iOS Payment Full flow to respect the `language` parameter passed at initialization.

## v1.0.23
*December 17, 2025*

- <ChangelogBadge type="fixed" /> **iOS CardFlow Initialization**  
  Fixed iOS initialization to honor the `cardFlow` configuration parameter that was previously ignored on iOS.

## v1.0.22
*December 15, 2025*

- <ChangelogBadge type="changed" /> **Documentation Updates**  
  Expanded README documentation. No API changes required.

## v1.0.21
*December 10, 2025*

- <ChangelogBadge type="changed" /> **Simplified Language API**  
  The `language` parameter now accepts a plain string instead of requiring the `YunoLanguage` enum, simplifying initialization. No migration required for existing integrations using the enum.

## v1.0.20
*December 10, 2025*

- <ChangelogBadge type="fixed" /> **iOS Language Initialization**  
  Fixed iOS initialization to honor the `language` configuration parameter (matching the Android key), while keeping backward compatibility with the legacy `lang` parameter.

## v1.0.19
*December 3, 2025*

- <ChangelogBadge type="changed" /> **Android SDK 2.8.1 Callback Compatibility**  
  Updated Android callback signatures to be compatible with Android SDK 2.8.1. No API changes required.

## v1.0.18
*December 3, 2025*

- <ChangelogBadge type="changed" /> **Internal Release Pipeline Updates**  
  Internal version alignment between the React Native wrapper and the underlying native SDK references. No API changes required.

## v1.0.17
*December 3, 2025*

- <ChangelogBadge type="added" /> **Headless Payment Flow**  
  Added a Headless Payment Flow for Android and iOS so merchants can drive payment progression from their own UI while delegating native execution to the SDK.

- <ChangelogBadge type="added" /> **Headless Enrollment Flow**  
  Added a Headless Enrollment Flow for Android and iOS for card enrollment via custom merchant UI.

- <ChangelogBadge type="added" /> **iOS Payment Full Flow**  
  Added Payment Full flow support on iOS with the native `YunoPaymentMethods` component for parity with Android.

- <ChangelogBadge type="changed" /> **iOS Native Module for YunoSDK 2.x**  
  Updated the iOS native module to YunoSDK 2.x, including correct delegate passing for `startPayment` and `continuePayment` and using the `.succeeded` enum case.

- <ChangelogBadge type="fixed" /> **iOS Module Registration**  
  Fixed the iOS native module registration by adding `moduleName()` and `constantsToExport()` and switching `NativeEventEmitter` to lazy loading, resolving linking issues at startup.

- <ChangelogBadge type="fixed" /> **OTT and Payment Status Events**  
  OTT and payment status events are now emitted from the Full Payment Flow delegate on iOS, and the Android Payment Full flow no longer reports a stale `CANCELLED` status across sessions.

## v1.0.16
*December 2, 2025*

- <ChangelogBadge type="fixed" /> **CardFlow Default Alignment**  
  Aligned the default `CardFlow` value with the native SDK by switching from `MULTI_STEP` to `STEP_BY_STEP` to prevent mismatched card form rendering.