# @ledgerhq/native-ui

> Ledger Live - Mobile UI

Latest version **0.66.0** (published 2026-08-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ledgerhq/native-ui
pnpm add @ledgerhq/native-ui
yarn add @ledgerhq/native-ui
bun add @ledgerhq/native-ui
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.66.0 |
| Published | 2026-08-11 |
| First published | 2021-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 633 |
| Author | Ledger Wallet Team <team-live@ledger.fr> |
| Maintainers | phenry-ledger, sergii-shkolin, gbrahm-ledger, ldg-github-ci, vbouzon, ledger-releaser |

## Links

- npm: https://www.npmjs.com/package/@ledgerhq/native-ui
- Repository: https://github.com/LedgerHQ/ledger-live
- Homepage: https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ui/packages/native
- Issues: https://github.com/LedgerHQ/ledger-live/issues
- npm.io page: https://npm.io/package/@ledgerhq/native-ui

## Dependencies (4)

- [color](https://npm.io/package/color.md) ^4.0.0
- [styled-system](https://npm.io/package/styled-system.md) 5.1.5
- [@ledgerhq/icons-ui](https://npm.io/package/@ledgerhq/icons-ui.md) ^0.20.0
- [@ledgerhq/ui-shared](https://npm.io/package/@ledgerhq/ui-shared.md) ^0.5.0

## Recent versions

- 0.66.0 (latest) — 2026-08-11
- 0.66.0-nightly.20260811073232 (nightly) — 2026-08-11
- 0.36.0-next.0 (next) — 2025-06-17
- 0.26.0-next-new-cdn.0 (next-new-cdn) — 2024-11-13
- 0.25.3-ios-build-number.0 (ios-build-number) — 2024-11-07
- 0.25.3-fix-build-number-pre.0 (fix-build-number-pre) — 2024-11-07
- 0.25.3-ios-build-number-fix.0 (ios-build-number-fix) — 2024-11-07
- 0.25.3-spl-tokens-test.0 (spl-tokens-test) — 2024-11-04
- 0.25.3-spl-test.0 (spl-test) — 2024-10-29
- 0.23.2-hotfix.0 (hotfix) — 2024-07-22
- 0.23.0-windows-certificate.0 (windows-certificate) — 2024-05-28
- 0.22.7-new-wc.0 (new-wc) — 2024-02-20
- 0.22.7-new-wc-test.0 (new-wc-test) — 2024-02-20
- 0.22.7-wc-test.0 (wc-test) — 2024-02-14
- 0.22.6-start-exchange.0 (start-exchange) — 2024-01-31
- … 586 more at https://npm.io/package/@ledgerhq/native-ui/versions

## README

# `@ledgerhq/native-ui`

> [!WARNING]
> **Status: DEPRECATED** — Deprecated. Migrate to `@ledgerhq/lumen-ui-rnative`.

[![npm](https://img.shields.io/npm/v/@ledgerhq/native-ui)](https://www.npmjs.com/package/@ledgerhq/native-ui)
[![storybook](https://img.shields.io/badge/Storybook-📚-61DBFB)](https://native-ui-storybook.vercel.app)

### Design and interface resources for React Native

#### This package contains [React Native](https://reactnative.dev/) components and styles built on top of our design system and used internally at [Ledger](https://www.ledger.com/).

## Reference

**[🔗 Storybook](https://native-ui-storybook.vercel.app)**

## Installation

### Package

```sh
npm i @ledgerhq/native-ui
```

### Peer dependencies

_This library uses the following packages under the hood and relies on them being installed separately to avoid package duplication._

```sh
npm i styled-components react-native-reanimated react-native-svg
```

### Additional setup

Follow the installation instructions for:

- [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/installation)
- [react-native-svg](https://github.com/react-native-svg/react-native-svg#installation)

## Usage

### Provider

Before using the library components, the style provider must be imported and rendered once to provide the components with the right context.

```tsx
import { StyleProvider } from "@ledgerhq/native-ui";

function Root({ children }) {
  // Selected theme palette can be either "dark" or "light".
  return <StyleProvider selectedPalette="light">{children}</StyleProvider>;
}
```

### Components

Import the components from `@ledgerhq/native-ui`.

```tsx
import { Flex, Text } from "@ledgerhq/native-ui";

function Hello() {
  return (
    <Flex flexDirection="column" alignItems="center">
      <Text variant="h1" color="neutral.c100">
        Hello, world!
      </Text>
    </Flex>
  );
}
```

### Fonts

#### Using [Expo](https://expo.dev/)

```sh
expo install expo-font
```

```js
import { useFonts } from "expo-font";

/*
  A higher-order component that will load and provide Ledger fonts to your app.
*/
function FontProvider({ children }) {
  const [fontsLoaded] = useFonts({
    "HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
    "Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
    "Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
    "Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
  });

  if (!fontsLoaded) {
    return null;
  }

  return children;
}
```

#### React Native - Bare

Add the paths in the `react-native.config.js` file:

```js
module.exports = {
  assets: [
    "node_modules/@ledgerhq/native-ui/lib/assets/fonts/alpha",
    "node_modules/@ledgerhq/native-ui/lib/assets/fonts/inter",
  ],
};
```

Then run the following command to add the required native code:

```
npx react-native link
```

## Minimal Working Example

[🌍 Hosted here.](https://snack.expo.dev/PG3RFRIAP)

### Expo

```js
import React from "react";
import { StyleProvider, Flex, Switch, Text, Logos } from "@ledgerhq/native-ui";
import { useTheme } from "styled-components/native";
import { useFonts } from "expo-font";

function Logo() {
  const theme = useTheme();
  return <Logos.LedgerLiveRegular color={theme.colors.neutral.c100} />;
}

function FontProvider({ children }) {
  const [fontsLoaded] = useFonts({
    "HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
    "Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
    "Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
    "Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
  });

  if (!fontsLoaded) {
    return null;
  }

  return children;
}

export default function App() {
  const [palette, setPalette] = React.useState("light");
  const isLight = palette === "light";

  return (
    <FontProvider>
      <StyleProvider selectedPalette={palette}>
        <Flex
          flex={1}
          justifyContent="center"
          alignItems="center"
          flexDirection="column"
          backgroundColor="neutral.c00"
        >
          <Logo />
          <Text variant="h2" color="neutral.c100" my={10}>
            Hello, world!
          </Text>
          <Switch
            checked={isLight}
            onChange={() => setPalette(() => (isLight ? "dark" : "light"))}
          />
        </Flex>
      </StyleProvider>
    </FontProvider>
  );
}
```

### React Native - Bare

```js
import React from "react";
import { StyleProvider } from "@ledgerhq/native-ui";
import { Flex, Text, Logos, Switch } from "@ledgerhq/native-ui";
import { useTheme } from "styled-components/native";

function Logo() {
  const theme = useTheme();
  return <Logos.LedgerLiveRegular color={theme.colors.neutral.c100} />;
}

export default function App() {
  const [palette, setPalette] = React.useState("light");
  const isLight = palette === "light";

  return (
    <StyleProvider selectedPalette={palette}>
      <Flex
        flex={1}
        p={12}
        justifyContent="center"
        alignItems="center"
        flexDirection="column"
        backgroundColor="neutral.c00"
      >
        <Logo />
        <Text variant="h2" color="neutral.c100" my={10}>
          Hello, world!
        </Text>
        <Switch checked={isLight} onChange={() => setPalette(() => (isLight ? "dark" : "light"))} />
      </Flex>
    </StyleProvider>
  );
}
```

---
_Source: https://npm.io/package/@ledgerhq/native-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
