Ldls native

From LedgerHQ/ledger-live · View interactive version

Ldls native is an AI agent skill from the GitHub repository LedgerHQ/ledger-live. Lumen UI React Native design system rules (`@ledgerhq/lumen-ui-rnative`) and how a native implementation maps a universal contract onto Lumen. Use when writing or reviewing native UI, in `*.native.tsx` files or under `apps/ledger-live-mobile/**`.

How to use this skill

Skill file

Lumen UI React Native

Read the Lumen rules first

Lumen ships its own rules for components, the lx style system and tokens. Read them before writing UI:

CODE0.

The file exists once pnpm i has run. pnpm links @ledgerhq/lumen-ui-rnative under the packages that

depend on it, not at the repo root. If the path is missing, open ai-rules/RULES.md in the installed

@ledgerhq/lumen-ui-rnative package of any native consumer.

Map the contract onto Lumen

The rules both platforms follow are in

universal-components. On native,

X.native.tsx maps:

| Contract (X.types.ts) | Native implementation (X.native.tsx) |

| ------------------------------------- | ----------------------------------------- |

| Intent callback, onOpenContacts() | onPress={onOpenContacts} |

| Value callback, onSearchQueryChange | onChangeText={onSearchQueryChange} |

| testID | testID={testID} |

// ContactsButton.native.tsx
import {
  Card,
  CardContent,
  CardContentTitle,
  CardHeader,
  CardLeading,
} from "@ledgerhq/lumen-ui-rnative";
import type { ContactsButtonProps } from "./ContactsButton.types";

export function ContactsButton({ title, onOpenContacts, testID }: ContactsButtonProps) {
  return (
    <Card type="interactive" onPress={onOpenContacts} testID={testID}>
      <CardHeader>
        <CardLeading>
          <CardContent>
            <CardContentTitle>{title}</CardContentTitle>
          </CardContent>
        </CardLeading>
      </CardHeader>
    </Card>
  );
}

What stays in the native file

These never appear in the contract. The native file owns them:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.