npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@klarna/react-native-klarna-network-core

v2.6.0

Published

React Native module for Klarna Network SDK initialization and configuration

Downloads

216

Readme

Klarna Network Core SDK React Native

NPM React Native Platform License Developed at Klarna

Core package for React Native Klarna Network packages. This library wraps KlarnaNetworkCore sdk and provides the shared Klarna entry point, session management, and integration metadata used by other React Native Klarna Network packages:

  • KlarnaNetworkPayments React Native
  • KlarnaNetworkMessaging React Native
  • KlarnaNetworkIdentity React Native

New Architecture only (TurboModule).

Requirements

  • iOS 13 or later.
  • Android 5.0 (API 21) or later.
  • React Native 0.76.0 or later (New Architecture required).

Getting started

Add Dependency

NPM

npm install @klarna/react-native-klarna-network-core --save

Yarn

yarn add @klarna/react-native-klarna-network-core

Usage

Initialize

Call Klarna.initialize once at app startup before using any Klarna Network SDK.

import { Klarna } from '@klarna/react-native-klarna-network-core';

const klarna = await Klarna.initialize({
  clientId: 'your-client-id',
  appReturnUrl: 'your-app://return',
  // optional
  accountId: 'account-id',
  locale: 'en-US',
  klarnaNetworkSessionToken: 'token',
});

Session token

const token = await klarna.network.session.token();

// Clear the session when done
await klarna.network.session.clear();

Handle return URL (iOS only — deep link)

Call this from your deep-link handler to let the SDK process redirect callbacks.

const handled = await Klarna.handleReturnUrl(url);

Integration metadata

Optionally tag the integration for analytics and debugging:

klarna.setIntegrationMetadata({
  integrator: {
    name: 'MyApp',
    sessionReference: 'session-ref',
    moduleName: 'klarna-network-payment',
    moduleVersion: '1.0.0',
  },
});

API

Klarna

| Method | Signature | Description | | ---------------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------------- | | initialize | (config: KlarnaConfiguration) => Promise<Klarna> | Initializes the native SDK. Must be called before any other method. | | handleReturnUrl (static) | (url: string) => Promise<boolean> | Processes a deep-link return URL (iOS only). Returns true if the SDK handled it. | | getIntegrationMetadata | () => KlarnaIntegrationMetadata \| null | Returns the currently set integration metadata. | | setIntegrationMetadata | (metadata: KlarnaIntegrationMetadata) => void | Sets integration metadata on the native layer. | | dispose | () => Promise<void> | Releases the native instance. Call when the SDK is no longer needed. |

KlarnaConfiguration

| Field | Type | Required | Description | | --------------------------- | -------- | -------- | ---------------------------------------- | | clientId | string | Yes | Klarna client ID | | appReturnUrl | string | Yes | Deep-link URL scheme for OAuth redirects | | accountId | string | No | Klarna account ID | | locale | string | No | BCP 47 locale string (e.g. "en-US") | | klarnaNetworkSessionToken | string | No | Pre-existing session token |

KlarnaNetworkSession

| Method | Signature | Description | | ------- | ----------------------- | ---------------------------------------- | | token | () => Promise<string> | Returns the active network session token | | clear | () => Promise<void> | Clears the current session |

Support

If you are having any issues using the SDK in your project or if you think that something is wrong with the SDK itself, please follow our support guide.

Contribution

If you want to contribute to this project please follow our contribution guide.

License

This project is licensed under Apache License, Version 2.0.