---
name: wavelength-react-native
description: Embed a self-custodial Lightning wallet in a React Native or Expo app with the Wavelength SDK (@lightninglabs/wavelength-react-native, @lightninglabs/wavelength-react). Use when integrating Wavelength into a React Native or Expo app, creating a native wallet engine, sending or receiving Lightning payments on device, wiring WavelengthProvider with a native engine, or adding native passkey protection. Triggers include "wavelength react native", "createNativeWalletEngine", "embed a Lightning wallet in React Native", "createNativePasskeyCeremony", and "Expo wallet".
title: wavelength-react-native
canonical_url: https://skilld.dev/gh/lightninglabs/wavelength-sdk/wavelength-react-native
last_updated: 2026-11-01T19:15:52.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install lightninglabs/wavelength-sdk/wavelength-react-native`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/wavelength-react-native`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/lightninglabs/wavelength-sdk/wavelength-react-native) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/wavelength-react-native`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/wavelength-react-native --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/wavelength-react-native --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Wavelength React Native integration

Wavelength embeds a self-custodial Lightning wallet in a React Native or Expo
app. The wallet daemon is compiled directly into the app binary; there is no
node to run, no backend to operate, and nothing listening on a socket.

Docs index: https://wavelength.lightning.engineering/llms.txt. Every docs page
has a markdown twin at the same URL with `.md` appended; fetch those.

## Packages

Check the npm registry for current versions; do not rely on memorized ones.

- `@lightninglabs/wavelength-react-native`: the native transport. A Turbo
  Module wrapping the wallet runtime compiled into the app binary.
  `createNativeClient()` builds a raw client; `createNativeWalletEngine()`
  wraps it in a `WalletEngine` and is the factory to use with the React
  provider. Re-exports everything from core.
- `@lightninglabs/wavelength-react`: `<WavelengthProvider>` plus hooks. Takes an
  injected engine; it does not depend on the react-native package.

## Task routing

| Building | Read first |
| --- | --- |
| Any new integration | https://wavelength.lightning.engineering/react-native/get-started/quickstart.md |
| Package install and native runtime staging | https://wavelength.lightning.engineering/react-native/get-started/installation.md |
| Platform, OS, and passkey requirements | https://wavelength.lightning.engineering/react-native/get-started/requirements.md |
| Passkey rpId domain association | https://wavelength.lightning.engineering/react-native/get-started/passkey-setup.md |
| Wallet creation and unlock | https://wavelength.lightning.engineering/guides/create-a-wallet.md |
| Passkey protection | https://wavelength.lightning.engineering/guides/use-a-passkey.md |
| Build or runtime failures | https://wavelength.lightning.engineering/react-native/troubleshooting.md |
| Exact API surface | https://wavelength.lightning.engineering/reference/wavelength-react-native.md |

## Critical rules

- Create the engine with `createNativeWalletEngine()` from
  wavelength-react-native and pass it to `<WavelengthProvider engine={...}>`.
  Build the engine once, outside the component tree (module scope), and
  inject the same instance on every render.
- Requires React Native 0.76 or newer, iOS 15.1+, and Android minSdk 24.
  The New Architecture must be enabled. This package is New Architecture
  only; it does not support the legacy architecture.
- Expo apps need a **development build**, not Expo Go: the native wallet
  runtime is a compiled module that Expo Go cannot load. `npx expo run:android`
  and `npx expo run:ios` both produce development builds that include it.
- The native wallet runtime binaries (`Wavewalletdk.aar`,
  `Wavewalletdk.xcframework`) are not bundled in the npm package. Stage them
  before the first build from the paired wavelength release: the `.aar` is
  copied into `android/libs/`, while the iOS archive is unpacked to one side,
  has its headers rewritten (clang rejects gomobile's `@import` before it will
  compile the package's Objective-C++ glue), and only then replaces any
  `ios/Wavewalletdk.xcframework` already there. Follow the installation page
  above rather than improvising it. From a checkout of the SDK repository, the
  `bindings:fetch` script does all of it for you.
- Passkey ceremonies are injected. Pass `createNativePasskeyCeremony({ rpId })`
  from wavelength-react-native into `useWalletPasskey(ceremony)`; do not
  implement platform authentication calls by hand. The `rpId` domain needs
  an `assetlinks.json` (Android) and an `apple-app-site-association` plus
  Associated Domains entitlement (iOS); see the passkey setup page above.
  iOS passkey support is experimental.
- Activity arrives as typed `activity` events, re-emitted from native
  `wavelengthActivity` device events; do not poll for state changes by hand.

## Verify the integration

After wiring, confirm: the app builds and launches on a device or
simulator via a development build (not Expo Go), the engine's `phase`
(from `useWallet()`) reaches `ready`, and an invoice can be created.
