Index of every page on this site: llms.txt
All skills
lightninglabs avatar

/wavelength-react-native

@76dd536
Run it yourself

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".

Use this Skill: https://skilld.dev/gh/lightninglabs/wavelength-sdk/wavelength-react-native

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈148 tokens for metadata: the name and description. ≈1k when used: this file.

Description uses 7.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈594 characters, or 7.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides legitimate instructions for integrating the Lightning Labs Wavelength SDK into React Native and Expo applications. It directs the agent to fetch documentation and native binaries from official vendor infrastructure. No malicious patterns were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 2 issues

Signed by skilld at 76dd536. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 4 months ago

README badge

README badge for lightninglabs/wavelength-sdk/wavelength-react-native